federivo
federivo

Reputation: 103

iPad View Rotation Duration

When changing the orientation of the iPad, my app rotates its view very fast. It is difficult to perceive the transition between both orientations. I would like to increase a little bit the duration of this transition.

Does anyone know how to increase the duration of this transition?

Thanks!

Upvotes: 1

Views: 1264

Answers (1)

kennytm
kennytm

Reputation: 523534

Starting from iPhone OS 3.2, UIApplication includes the -windowRotationDuration method, which returns the duration of rotation. It is 0.3 seconds in iPhone mode, and 0.4 seconds in iPad mode. You could override this method to change the rotation speed, e.g.

@implementation UIApplication (OverrideRotationSpeed)
-(NSTimeInterval)windowRotationDuration { return 5.0; }
@end

Now, -windowRotationDuration is a private API, which means you can't use this method, and there are no documented ways to do so, therefore the answer is:-

          No.

Upvotes: 7

Related Questions