Re: Why do things wind up under the nav bar after rotation?
Re: Why do things wind up under the nav bar after rotation?
- Subject: Re: Why do things wind up under the nav bar after rotation?
- From: David Duncan <email@hidden>
- Date: Thu, 26 May 2011 14:44:15 -0700
On May 26, 2011, at 2:39 PM, G S wrote:
>>> Kinda seems like the framework would call that, but I guess not.
>>
>> It should and this shouldn't be necessary. A bug report would be good here.
>
> Yes, I'm going to file one. While this workaround straightens the
> layout after rotation, it's a little janky because things snap into
> place after the rotation's done instead of animating smoothly into
> place.
>
> Also, it doesn't work with anything but custom view controllers. For
> example, I present a simple information panel in a UIView, but that's
> illegible after rotation because it's shoved up under the nav bar. To
> fix that, I'm going to have to derive a whole class from
> UIViewController (or make a category) just to call layoutSubviews
> after a rotation. Lame.
This makes me wonder how your view controllers are laid out. I don't suppose you added the contents that are having trouble by taking a view from one view controller and adding it as a subview to a view owned (directly or indirectly) by another view controller?
--
David Duncan
_______________________________________________
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