makeObjectsPerformSelector 方法的用法


nsarray 类定义的方法

1.  makeObjectsPerformSelector:@select(aMethod)

简介:让数组中的每个元素 都调用 aMethod 

2. makeObjectsPerformSelector:@select(aMethod)

                     withObject:oneObject

简介:让数组中的每个元素 都调用 aMethod  并把 withObject 后边的 oneObject 对象做为参数传给方法aMethod

[array makeObjectsPerformSelector:@selector(setRecurringDelegate:)

                                  withObject:self];/*检测到的该自动插入的交易插入数据库*/

   

[array makeObjectsPerformSelector:@selector(insertRecursion)]; /*检测到的该自动插入的交易插入数据库*/


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM