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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to