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