0
我不使用IB多创建我的意见,所以我通常以编程方式做所有事情。我bascially推视图控制器到导航控制器,它似乎是viewController的顶部是在导航栏下。我正在尝试使视图正确合适。iPhone开发:视图不适合我的UINavigation控制器
这里是我的代码:
navigationController = [[UINavigationController alloc] initWithNibName:nil
bundle:nil];
[window addSubview:navigationController.view];
viewController = [[UIViewController alloc] init];
//this code was just added to try and make it fit. It doesn't change anything
viewController.view.frame = [UIScreen mainScreen].applicationFrame;
[navigationController pushViewController:viewController animated:NO];
更改它并没有解决它。我以前从来没有遇到过导航控制器的问题。 – TheGambler 2009-10-03 13:15:47
已将其更改为initWithNibName:nil bundle:nil – TheGambler 2009-10-03 13:16:46
仍然不起作用 – TheGambler 2009-10-03 14:57:28