I have some code which supposedly should rotate the image by 45 degrees but in practice does not work it just flashes up about 10 times the size and disappears.
And when the same code is run but with the angle changed from 45 to 90 everything works fine. After looking through pages of similar questions I have found that other people are experiencing problems with rotating by 45 degrees but none are the same and none of the solutions help me.
So I was wondering if anybody could enlighten me? Here is the code:
image.transform = CGAffineTransformMakeRotation((M_PI*45)/180);