美文网首页iOS 菜鸟之旅
iOS-makeObjectsPerformSelector

iOS-makeObjectsPerformSelector

作者: 涛涛灬灬 | 来源:发表于2017-04-24 17:22 被阅读50次

(http://www.cnblogs.com/zander/archive/2012/07/18/2597567.html)

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)]; /将检测到的该自动插入的交易插入数据库/

[self.timeLayerArray makeObjectsPerformSelector:@selector(removeFromSuperlayer)];
[self.timeLayerArray removeAllObjects];//将元素移除数组

相关文章

网友评论

    本文标题:iOS-makeObjectsPerformSelector

    本文链接:https://www.haomeiwen.com/subject/etvpzttx.html