Re: UIView size after rotation
Re: UIView size after rotation
- Subject: Re: UIView size after rotation
- From: David Duncan <email@hidden>
- Date: Wed, 30 Mar 2011 09:41:32 -0700
On Mar 30, 2011, at 4:19 AM, Remco Poelstra wrote:
> In my UIVIewController -(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration, I need to know the size of the view after it's rotated. Is there a way to calculate it if it can not be requested? The view's bounds are still in the old orientation, although the orientation property is already updated.
> Thanks in advance.
Use -willAnimateRotationToInterfaceOrientation:duration: instead. The view has already been resized by then. The docs describe the order that the auto rotation methods are called in and what has happened at each step.
--
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