iOS7 - 更改UINavigationBar边框颜色 [英] iOS7 - Change UINavigationBar border color
本文介绍了iOS7 - 更改UINavigationBar边框颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以更改iOS7中的UINavigationBar的灰色边框底部颜色?
Is it possible to change the grey border-bottom color of the UINavigationBar in iOS7?
我已经尝试删除边框,但这不工作: / p>
I already tried to remove to border, but this is not working:
[[UINavigationBar appearance] setShadowImage:[[UIImage alloc] init]];
$ b
谢谢!
Thanks!
推荐答案
这将帮助你:)
[self.navigationController.navigationBar.layer setBorderWidth:2.0];// Just to make sure its working
[self.navigationController.navigationBar.layer setBorderColor:[[UIColor redColor] CGColor]];
这篇关于iOS7 - 更改UINavigationBar边框颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文