0

Is there a way for me to animate my view controller rotating to fade out then fade in on the view rotation instead of the spinning motion?

have already tried dimming out then dimming in when rotation is detected, but as its dimming out you can see it starting to rotate

so probably need a way to disable the existing spin motion?

2
  • where are you adding the dimming animation, what function? Commented Nov 9, 2012 at 14:53
  • Im detecting the UIViewContrller InterfaceOrientation and dimming based on the value it produces but it doesn't mask the rotation animation Commented Nov 9, 2012 at 15:06

1 Answer 1

1

Try setting your dimmin animation in UIViewController method willRotateToInterfaceOrientation or willAnimateRotationToInterfaceOrientation or willAnimateFirstHalfOfRotationToInterfaceOrientation

1
  • yeah just sorted it using the willAnimateFirstHalfOfRotationToInterfaceOrientation and willAnimateFirstSecondOfRotationToInterfaceOrientation to cancel the existing animation. CHEERS Commented Nov 9, 2012 at 15:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.