首页 > 代码库 > 快速清除subviews

快速清除subviews

NSArray 类定义的方法

  1. makeObjectsPerformSelector:@select(aMethod)

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

  1. makeObjectsPerformSelector:@select(aMethod)

         withObject:oneObject

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

快速清除subviews