kAi*_*AiN 5 uiviewcontroller uinavigationcontroller ios7
我已经包含了一个导航栏(navigationController)的需要与bar viewController的背景相同的色调...现在我有一个问题...在导航栏和视图之间我有一条水平线将它们分开,就像你一样从图片中可以看出..你能告诉我怎样才能删除这条水平黑色并使其更加一致?
我在AppDelegate中试过这个:
[[UINavigationBar appearance] setShadowImage: [[UIImage alloc] init]];
     UINavigationController * nav = (UINavigationController *) self.window.rootViewController; nav.navigationBar.translucent = NO;
但我没有得到结果.你能帮我吗?感谢Rory的所有人.

Yuv*_*inh 13
您还必须为导航栏设置背景图像以满足您的要求
[[UINavigationBar appearance] setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];
[[UINavigationBar appearance] setShadowImage:[[UIImage alloc] init]];
| 归档时间: | 
 | 
| 查看次数: | 2809 次 | 
| 最近记录: |