摘要:
seachBar=[[UISearchBar alloc] init]; //修改搜索框背景 seachBar.backgroundColor=[UIColor clearColor]; //去掉搜索框背景 //1. [[searchbar.subviews objectAtIndex:0]removeFromSuperview]; //2. for (UIView *subview in seachBar.subviews) { if ([subview isKindOfClass:NSClassFromString(@"UISearchBarBackground")]) 阅读全文