UISearchBar barTintColor not hiding in iOS 7.1
ios, ios7, ios7.1, objective-c, uisearchbar
Solution
It seems that this does the trick:
[searchBar setBackgroundImage:[UIImage new]];
Problem
In my app, I am using `UISearchBar` in a custom `UIView`. Following is the code to display the `UISearchBar`. ``` searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(50, 135, 230, 32)]; searchBar.barTintColor = [UIColor clearColor]; searchBar.placeholder = @"Search"; [self addSubview:searchBar]; ``` In iOS 7.0.3, bartint color not showing, However in iOS 7.1, the bartint color is not hiding.