makeObjectsPerformSelector: 方法的用法

    //让数组中得每个元素都调用 @selector 中的get方法
    
    [self.buttons makeObjectsPerformSelector:@selector(get)];
    
    NSString *name = @"";
    //让数组中的每个元素都调用selector中得方法,并且将withObject  的参数传递
      [self.buttons  makeObjectsPerformSelector:@selector(get:) withObject:name];

 

posted @ 2015-07-20 11:17  Qingyun_Qearl  阅读(167)  评论(0编辑  收藏  举报