摘要: 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")]) 阅读全文
posted @ 2011-07-11 17:18 小菜比 阅读(6177) 评论(1) 推荐(0) 编辑