开发者

UINavigationController Problem

In a view Controller I am adding a UINavigationController and it has around 20-30 pixels on top of it. It doesnt fit the navigationCOntroller properly. For soem reason it adds the subview 20-30 px below

navController = [[UINavigationController alloc] init];
nav开发者_开发问答Controller.navigationBar.tintColor = [UIColor grayColor];
UnitViewController *unitController = [[UnitViewController alloc] init];
[navController pushViewController:unitController animated:YES];
[self.view addSubview:navController.view];

Any Idea?


If this is a full screen app then perhaps the UnitViewController's view is not setup correctly. It may be assuming presence of status bar and leaving room for it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜