The border does not seem to change very well with the color of the hue, so my designer insisted that we change it. It's as simple as adding a 1px view at the bottom of the search bar:
Now in viewDidLoad I create a 1px view and position it at the very bottom of our search bar.
#define SEARCHBAR_BORDER_TAG 1337 - (void) viewDidLoad{
Now I also go to the hue color to the default when the user really searches, because tinting the search bar also changes the color of the cancel button to an ugly color. If you do something like this, the code below will hide / show your border for each state:
- (void)searchDisplayControllerWillBeginSearch:(UISearchDisplayController *)controller{ [controller.searchBar setTintColor:nil];
kwood source share