无标题文章
2014-06-18 本文已影响28人
Ghstart
[[searchBar.subviews.firstObject subviews] enumerateObjectsUsingBlock:^(UIView *subview, NSUInteger idx, BOOL *stop) {
if ([subview isKindOfClass:[UIButton class]]) {
[(UIButton *)subview setEnabled:YES];
}
}];