Hello,
I need to rotate a UIImageView of a view created by Interface builder. I have this code:
This rotates the image but the latter is totally distorted. if REF_INIT_OFFSET is a multiple of 90 it works fine !
Do you have in idea what's wrong ?
thanks,
tex
I need to rotate a UIImageView of a view created by Interface builder. I have this code:
Code:
- (void)viewDidLoad
{
[super viewDidLoad];
image.transform = CGAffineTransformRotate(image.transform, REF_INIT_OFFSET*M_PI/180);
}
This rotates the image but the latter is totally distorted. if REF_INIT_OFFSET is a multiple of 90 it works fine !
Do you have in idea what's wrong ?
thanks,
tex