Hi all,
I am implementing a search bar as a table view header in my universal (iPhone/iPad) app. The table view is inside a navigation controller. What I want to do is mimic the behavior of Apple’s ‘Messages’ app for my search bar. However, I can’t seem to figure out how to do it despite lots of research (Stack Overflow, this list, Google).
On the phone when you tap in the search text field in Messages everything moves up so that the search bar is just under the status bar and the status bar background turns gray (same color as the search bar). In my app everything moves up but the status bar background remains its original white color. This looks okay, just different, but I suspect is linked to the problem below.
On the iPad in Messages the behavior is the same. The status bar background above the list of messages turns gray when you tap in the search field. In my app on the iPad the navigation controller is inside a split view controller (which appears to be the case for Messages). Here when I tap in the search text field everything moves up, but the navigation bar text also moves up and is partly visible under the status bar, which retains its original color. The search bar looks to be snug against the status bar, the navigation bar text (title etc) seems to have invaded the status bar.
Can anyone tell me what is going on? How do I get the status bar to turn color (and hide the navigation bar text on the iPad). This is an older project and uses xib files. Is there some setting in the xib file to choose?
Thanks for any pointers,
Don
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden