makeObjectsPerformSelector的用法

1.  makeObjectsPerformSelector:@select(aMethod)

简介:让数组中的每个元素 都调用 aMethod

实际应用:

[self.navigationView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];

2. makeObjectsPerformSelector:@select(aMethod)

withObject:oneObject

简介:让数组中的每个元素 都调用 aMethod  并把 withObject 后边的 oneObject 对象做为参数传给方法aMethod

你可能感兴趣的:(makeObjectsPerformSelector的用法)