UINavigationController within ViewController, gap at top of view

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

    The proper answer is:

    CGRect r = [[_navController view] frame];
    r.origin = CGPointMake(0.0f, -20.0f);
    [[_navController view] setFrame:r];
    

提交回复
热议问题