无标题文章

   [[searchBar.subviews.firstObject subviews] enumerateObjectsUsingBlock:^(UIView *subview, NSUInteger idx, BOOL *stop) {
        if ([subview isKindOfClass:[UIButton class]]) {
            [(UIButton *)subview setEnabled:YES];
        }
    }];

你可能感兴趣的:(无标题文章)