Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

newbie80

macrumors member
Original poster
Mar 2, 2011
51
0
Hi,

After I rotated my image, how do I reset my image to previous state or initial state? Any help would be thankful.

The following is my code:
Code:
float tempF = atan2(location.y - plans_shapea.center.y, location.x - plans_shapea.center.x);
        
        [UIView beginAnimations:nil context:nil];
        
        CGAffineTransform viewTransform = CGAffineTransformMakeRotation(tempF);
        
        plans_shapea.transform = viewTransform;
        [UIView commitAnimations];

Already found the solution.
 
Last edited by a moderator:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.