Method of use makeObjectsPerformSelector

NSArray class defines methods

  1. makeObjectsPerformSelector:@select(aMethod)

Description: Let each element in the array are calling aMethod

makeObjectsPerformSelector:@select(aMethod)

                     withObject:oneObject

Description: Let each element in the array are calling aMethod and the withObject behind oneObject objects as a parameter passed to the method aMethod

[array makeObjectsPerformSelector:@selector(setRecurringDelegate:) withObject:self];

/ Detected the transaction into the database automatically inserted /

[array makeObjectsPerformSelector:@selector(insertRecursion)];

/ Detected the transaction into the database automatically inserted /

Guess you like

Origin blog.csdn.net/SunFlowerInRain/article/details/78247243