首页 > 代码库 > iOS 遍历控件

iOS 遍历控件

NSArray *subviews = [_bgImageView subviews];    for (id objInput in subviews) {        if ([objInput isKindOfClass:[UITextField class]]) {            UITextField *theTextField = objInput;            if ([objInput isFirstResponder]) {                [theTextField resignFirstResponder];            }        }    }