关于searchBar取消白色背景

for (UIView *view in _searchBar.subviews) {

if ([view isKindOfClass:NSClassFromString(@"UIView")]&&view.subviews.count>0) {

[[view.subviews objectAtIndex:0]removeFromSuperview];

break;

}


你可能感兴趣的:(关于searchBar取消白色背景)