标签:c style class blog code java
NSMutableArray *textFieldArray = [NSMutableArray arrayWithCapacity:5]; for (UIView *textField in self.view.subviews) { if ([textField isKindOfClass:[UITextField class]]) { [textFieldArray addObject:textField]; } }
用isKindOfClass判断指定类型
标签:c style class blog code java
原文地址:http://www.cnblogs.com/litaowei/p/3778954.html