• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Move UINavigationBar down?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Move UINavigationBar down?


  • Subject: Move UINavigationBar down?
  • From: Stephen Zyszkiewicz <email@hidden>
  • Date: Mon, 25 Oct 2010 15:12:55 -0700

I'm trying to position the navigation bar below the top of the screen.

I've tried the following in viewWillAppear:

self.navigationController.view.frame = CGRectMake(0.0, 54.0, 320.0, 426.0);
self.navigationController.navigationBar.frame = CGRectMake(0.0, 0.0, 320.0, 44.0);

The problem is it only seems to work the very first time the view is displayed. If you go to another tab, and back, the navigation bar is at the top of the screen. This also happens when the iPhone is rotated.

Should I be trying to adjust the navigation controller frame, or should I instead try to add the navigation controller to another view that is below the top of the screen?


Thanks,
Steve_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Move UINavigationBar down?
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Drag and drop between two table views.
  • Next by Date: Re: Thread not registered mystery under GC
  • Previous by thread: Re: Drag and drop between two table views.
  • Next by thread: Re: Move UINavigationBar down?
  • Index(es):
    • Date
    • Thread