我已将UINavigationBar背景图像设置68px为与默认高度相反的图像44px。现在图像显示正常,但第一个中的内容与标题图像UINavigationController重叠。(68-44)px = 12px
我该如何解决?我试过设置没有运气frame的。UINavigationBar
谢谢,卡斯帕。
这是我的代码(AppDelegate.m):
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:self.frontTableViewController];
UINavigationBar *navBar = navigationController.navigationBar;
[navBar setBackgroundImage:[UIImage imageNamed:@"header"] forBarMetrics:UIBarMetricsDefault];
self.window.rootViewController = navigationController;
