NSMutableArray *textFieldArray = [NSMutableArray arrayWithCapacity:5]; for (UIView *textField in self.view.subviews) { if ([textField isKindOfClass:[UITextField class]]) { [textFieldArray addObject:textField]; } }
遍历子视图中某个类型控件方法
最新推荐文章于 2021-05-26 14:34:49 发布