[[searchBar.subviews.firstObject subviews] enumerateObjectsUsingBlock:^(UIView *subview, NSUInteger idx, BOOL *stop) {
if ([subview isKindOfClass:[UIButton class]]) {
[(UIButton *)subview setEnabled:YES];
}
}];
[[searchBar.subviews.firstObject subviews] enumerateObjectsUsingBlock:^(UIView *subview, NSUInteger idx, BOOL *stop) {
if ([subview isKindOfClass:[UIButton class]]) {
[(UIButton *)subview setEnabled:YES];
}
}];
本文标题:无标题文章
本文链接:https://www.haomeiwen.com/subject/ufkjtttx.html
网友评论