Branding Bar above UINavigationController Navigation bar
I'm trying to place a branding bar (320x22) above the UINavigationBar in a UINavigationController.
Has anyone been successful in doing so? I know many applications already do it, but I wanted to get some ideas on how to accomplish this.
I tried:
- Creating a UINavigationBar category and overriding the drawRect method.
- Placing the UINavigationController inside a UIViewController.
- Moving 开发者_开发知识库the nav bar in viewWillAppear (then if i present modal the nav bar pops back into place forcing me to use viewDidAppear which actually shows the navbar moving down again...)
Anyone out there have any better ideas?
Thanks!
Create a view and add the branding bar and the navigation controller's view as subviews. Set the navigation controller's view's frame to underneath the branding bar.
精彩评论