views:

217

answers:

1

I have a UISearchBar added as my table header with the following code.

searchBar = [[UISearchBar alloc] initWithFrame:self.tableView.bounds];
searchBar.tintColor = [UIColor colorWithWhite:185.0/255 alpha:1.0];
[searchBar sizeToFit];
self.tableView.tableHeaderView = searchBar;

Then I set my UISearchDisplayController up as follows.

searchDisplayController = [[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self];
[searchDisplayController setDelegate:self];
[searchDisplayController setSearchResultsDataSource:self];

Everything functions as I would like except that the UISearchDisplayController has added a blue(ish) border above the search bar — this bar does not recognise the tintColor I have set on the search bar.

Is it possible to change the color of this bar? It is obviously not absolutely crucial but that line is going to bug me forever if it stays blue like that!

zoomed in on UISearchBar

A: 

Hi prendio2

Did you manage to find a solution to this problem? I have exactly the same issue.

Cheers

amobbs
no solution yet unfortunately. this is not a forum, and what you have posted is not an answer so I have voted it down. If you have the same issue it is more appropriate to vote the question up so that others who might know the answer could see it… If I ever find an answer it will be posted here.
prendio2