• 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
Re: UIView size after rotation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >UIView size after rotation (From: Remco Poelstra <email@hidden>)

  • Prev by Date: Re: NSObject Category Issue on iOS
  • Next by Date: autorelease pool comprehension
  • Previous by thread: Re: UIView size after rotation
  • Next by thread: autorelease pool comprehension
  • Index(es):
    • Date
    • Thread