[self.tagLabels makeObjectsPerformSelector:@selector(aMethod) withObject:oneObject];数组
让数组中的每一个元素 都调用 aMethod 并把 withObject 后边的 oneObject 对象作为参数传给方法aMethod。orm
固然也能够不用传参数:对象
[self.tagLabels makeObjectsPerformSelector:@selector(removeFromSuperview)];rem
让self.tagLabels中的全部label从父控件中移除。it
而后通常附加:form
[self.tagLabels removeAllObjects];select
清空数据方法