Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UISearchBar linked with a UISearchDisplayController in the header of a UITableView in iOS7

I have a UISearchBar linked with a UISearchDisplayController in the header of a UITableView in iOS7.

I set the UISearchBar with the style minimal. When the searchdisplaycontroller shows his table it has the behavior of the picture below. The table is scrolling above the searchbar. When I switch the style of the tableview to Prominent the table scrolls under the searchbar as expected.

Is this a bug or this behavior is expected?

UITableView with UISearchBar style minimal

like image 262
flopes Avatar asked Sep 19 '13 13:09

flopes


1 Answers

The text isn't floating above the search bar, it's going below. Minimal style doesn't provide a background so this is expected. It will, however, provide a background during activation if there is a navigation bar present (Minimal style really wants to be over either no content or blurred content).

You are free to add your own custom background if you'd like.

like image 61
MyztikJenz Avatar answered Oct 13 '22 00:10

MyztikJenz