Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们什么时候应该在我们的程序中使用可可块?
我知道一个块可以访问 ivars 和私有属性,并且可以像变量一样被调用/使用,并且比方法更快。我还看到苹果使用块对数组进行排序。但是我担心我们应该在什么要求下使用块?
请等待答复。