makeObjectsPerformSelector的用法
2017-05-11 本文已影响42人
JACK_岩
1. makeObjectsPerformSelector:@select(aMethod)
简介:让数组中的每个元素 都调用 aMethod
实际应用:
[self.navigationView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
2. makeObjectsPerformSelector:@select(aMethod)
withObject:oneObject