Why do things wind up under the nav bar after rotation?
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