storyboard里只能设置background颜色,可是发现clear color无法使用
其实代码还是可以设置的,那就是删除背景view
[[self.searchBar.subviews objectAtIndex:0] removeFromSuperview];