Re: How to change to the smoother single-stage animation
Re: How to change to the smoother single-stage animation
- Subject: Re: How to change to the smoother single-stage animation
- From: Agha Khan <email@hidden>
- Date: Sat, 08 Aug 2009 00:30:36 -0700
Dear Hank:
I have removed both function but now my device doesn't know if it is
in horizontal or vertical position. I need that information to arrange
some controls according to its Orientation.
Thanks.
Agha
On Aug 6, 2009, at 10:58 AM, Hank Heijink (Mailinglists) wrote:
This is new in iPhone OS 3.0. From the documentation for
UIViewController:
- (void)willAnimateFirstHalfOfRotationToInterfaceOrientation:
(UIInterfaceOrientation) toInterfaceOrientationduration:
(NSTimeInterval)duration
[...]
The default implementation of this method does nothing. If you
override this method (or
thewillAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:
method), the view controller always performs rotation animations in
two steps. To configure animations using the one-step technique,
override thewillAnimateRotationToInterfaceOrientation:duration:
method instead.
You have to remove your override for the above method as well as the
one for the corresponding method for the second half of the rotation.
Best,
Hank
On Aug 6, 2009, at 1:27 PM, Agha Khan wrote:
Hi:
I am getting this message.
Using two-stage rotation animation. To use the smoother single-
stage animation, this application must remove two-stage method
implementations.
Any idea how to change to smoother single-stage animation?
Agha
_______________________________________________
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
_______________________________________________
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