UINavigationController within ViewController, gap at top of view

后端 未结 11 1023
不知归路
不知归路 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:41

    Not sure whether it'll be of any help, but I've had similar issues in the past and have been able to resolve this by setting the frame of the UINavigationController view to CGRectZero when adding it to its superview.

    In layoutSubviews I update the frame of the UINavigationController view of course.

提交回复
热议问题