开发者

UINavigationController Problem

开发者 https://www.devze.com 2023-01-19 07:46 出处:网络
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 bel

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

精彩评论

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

关注公众号