What is the BOOL *stop argument for enumerateObjectsUsingBlock: used for?
问题 I\'ve been using enumerateObjectsUsingBlock: a lot lately for my fast-enumeration needs, and I\'m having a hard time understanding the usage of BOOL *stop in the enumeration block. The NSArray class reference states stop : A reference to a Boolean value. The block can set the value to YES to stop further processing of the array. The stop argument is an out-only argument. You should only ever set this Boolean to YES within the Block. So then of course I can add the following in my block to