iOS让数组内对象执行同一方法
2016-12-26 09:48 supper_Ho 阅读(250) 评论(0) 编辑 收藏 举报// 让数组中的所有对象都执行removeFromSuperview方法
[self.answerView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
// for (UIView *subview in self.answerView.subviews) {
// [subview removeFromSuperview];
// }