I want to implement a ‘modal’ view like the ‘search’ view of the AppStore on the iPad.
When shown, it should:
- Still show the tab bar. Selecting any of the items should take you to their view as normal.
- No tab bar item is highlighted (because the search view is ‘modal’).
The closest I’ve come, with existing APIs, is:
- On the ‘search’ view controller, set the
UIModalPresentationCurrentContext
modal presentation style. - Show ‘search’ view controller modal from the active view controller inside the tab bar controller (not from the tab bar controller itself).
However, this does not seem to be the right path:
- View controller is shown underneath the status bar. I can work around that from
-[UIViewController viewDidAppear:]
, but when changing the orientation of the device, this leads to all sorts of drawing issues and the controller, again, tucks itself underneath the status bar. - Tab bar item is still highlighted.