So I have this custom UIViewController subclass, that I present modally with -presentViewController:animated:
(NOT pushing it onto a navigation stack). I'm trying to make it play nicely with both iOS 6 and iOS 7.
Said VC is built in a .xib file (no storyboard is involved). I have a custom navigation bar in there, along with some other UI elements. When I run it in iOS 7, I get this:
It looks correct; my custom nag bar correctly abuts the status bar.
However, when I run the same thing in iOS 6, I get:
Notice the black gap (that's the background of the view) between the status bar and my custom nav bar. :(
In the .xib file, I have the view's contents shifted down from the top of the view by 20 pixels; AND I have the view's "iOS 6/7 Deltas" for deltaY set to "-20". It obviously ain't working.
What am I missing here?!