objective c - Applying the same test to all members of a collection -


in test have nsarray several objects. must pass same test.

is there better or more elegant way express doing for-in , applying same macro each element?

that's judgement call, consider -indexesofobjectswithoptions:passingtest: , maybe -enumerateobjectsusingblock: alternatives.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -