Subclassing UINavigationBar … how do I use it in UINavigationController?

假如想象 提交于 2019-12-03 03:59:54

I dunno if you got this figured out. But for others that might have this problem...

What you need to do is to specify the class in your XIB to your class name (in this case MyNavigationBar.

Check session 123 in WWDC 2011.

Set the UINavigationBar "tint" property to the color you want.

Romeo

Try creating a [UIColor colorWithPatternImage:(UIImage*)image] and setting it to the NavBar's backgroundColor property. I haven't tried this yet, but I will do it right now.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!