Search code examples
iphonerotationcgaffinetransform

how To detect that cgaffinetransformrotate method is rotating the clockwise or anticlockwise?


I need to figure Out that thorough the Cgaffinetransformrrotate I am rotating the view towards the clockwise or anticlockwise.

how it is possible?


Solution

  • YourView.transform = CGAffineTransformMakeRotation( positive value ); 
    will rotate the view clockwise, and
    YourView.transform = CGAffineTransformMakeRotation( Negative value ); 
    will rotate the view Anti clockwise,