NSArray特殊数组对象

来源:互联网 发布:砍价源码 编辑:程序博客网 时间:2024/06/16 07:18

NSArray里如果存放的数组对象是UIView的实例,可以用的方法

 NSMutableArray *_itemViews; _itemViews = [NSMutableArray array]; UIView *itemView = [[UIView alloc]init];    [_itemViews addObject:itemView];

数组删除数组中对象的方法

[_itemViews makeObjectsPerformSelector:@selector(removeFromSuperview)];