When I go to the navigation bar, so I'm trying to add a background image on your search bar. But if I write something like this:
self.searchDisplayController.searchBar.barTintColor = [UIColor colorWithPatternImage: [UIImage imageNamed: @ "searchBarBG2.png"]];
There is always black color and it gets worse in status bar:
My image size is 320: 64
Try IOS7,
self .searchDisplayController.searchBar.searchBarStyle = UISearchBarStyleMinimal for; [Own .searchDisplayController.searchBar setBackgroundImage: [own Cvivistar: [UIColor yourColor]] forBarPosition: 0 Barmetriks: UIBarMetricsDefault];
Comments
Post a Comment