Objective-C for iOS.
How do I rotate an image or look at a certain angle. I tried the two methods below, but both rotate AMOUNT angle, not angle. Basically, I would like to call the method to rotate 90 ', and then repeat the call 180', and finish the image / view 180 ', DO NOT add both of them (270'), which happens if I use any of the following methods.
myImage.transform = CGAffineTransformMakeRotation(degreesToRadians(90));
myImage.transform = CGAffineTransformRotate(myImage.transform, degreesToRadians(90));
Many thanks!
source
share