开发者

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:

  1. Creating a UINavigationBar category and overriding the drawRect method.
  2. Placing the UINavigationController inside a UIViewController.
  3. 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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜