• 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
Why do things wind up under the nav bar after rotation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why do things wind up under the nav bar after rotation?


  • Subject: Why do things wind up under the nav bar after rotation?
  • From: G S <email@hidden>
  • Date: Thu, 26 May 2011 11:41:21 -0700

Hi all.  I'm having a layout problem on all my screens after they're
rotated.  It seems as though the view loses all knowledge of the
navigation bar at the top after a rotation, so subviews are shoved up
under it.  Check it out:

http://i.stack.imgur.com/mFALa.png

It's not just this view.  It also occurs on a view that contains a
UITableView, which is loaded from a XIB (unlike the one above).  I
have autoresizing set in all directions.  The problem corrects itself
on the screen depicted above if I push another view onto the
navigation stack and then pop it, but I don't know what's being called
to bring about the correction.  On the tableview screen, the view
corrects itself when the tableview is tapped.

I've tried calling setNeedsLayout after the rotation finishes, but
that had no effect.  I also tried calling viewWillAppear (thinking
that might have triggered the correction), but that didn't do it
either.

Any ideas?  Thanks!

Gavin
_______________________________________________

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: Why do things wind up under the nav bar after rotation?
      • From: G S <email@hidden>
  • Prev by Date: Re: Drawing an arc fill inside an image
  • Next by Date: Re: How to implement "while there are objects in the array - run runloop" idea?
  • Previous by thread: Re: Best way to handle iOS device rotation
  • Next by thread: Re: Why do things wind up under the nav bar after rotation?
  • Index(es):
    • Date
    • Thread