UINavigationController within ViewController, gap at top of view

后端 未结 11 1001
不知归路
不知归路 2021-02-04 03:24

I\'m working on a universal app, and I\'m trying to share as much code as possible between the iPhone and iPad versions. I need to use a TabBarController as my root view contro

11条回答
  •  说谎
    说谎 (楼主)
    2021-02-04 03:37

    Oddly enough, what's helping for me in iOS 6 is subclassing UINavigationController and implementing this method:

    - (BOOL)wantsFullScreenLayout {
        return NO;
    }
    

    Unchecking "Wants Full Screen" in my storyboard didn't do the trick, so I don't know what's different. This could certainly break in a future version of iOS. But for now, I'll take it.

提交回复
热议问题