开发者

iPad style navbar on iPhone app

开发者 https://www.devze.com 2023-03-06 16:11 出处:网络
Hey, on iPad the navigation bar is normally silver and on the iPhone it\'s normally blue. Is there any easy way to make t开发者_开发百科he silver navbar on iPhone app?

Hey, on iPad the navigation bar is normally silver and on the iPhone it's normally blue. Is there any easy way to make t开发者_开发百科he silver navbar on iPhone app?

Thanks!!


If you just want to change the color of your navigation bar, the easiest way to do this would be to add your navigation bar in IB, then click on the navigation bar's attributes panel. Change the tint color to whatever color you would like in there and it will show up accordingly on your app. Similarly, if you are adding the navigation bar programmatically, you should be able to set the tint color yourself with something along the lines of myNavBar.tintColor = [UIColor someColor];. I hope this helps.


As of iOS 5 this can be easily achieved without any manual tinkering. Read this up.

0

精彩评论

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