Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

With the use of new scale to my picture, I then apply a rotation, then scale image is getting old scale

-(void)rotate:(UIRotationGestureRecognizer *)rotationRecognizer{
    double rotation;
    rotation=rotationRecognizer.rotation;
    ((UIImageView*)[rotationRecognizer view]).transform = CGAffineTransformMakeRotation(rotation);

    self.photoParent = [self.pictures objectAtIndex:0];

    self.photoParent.rotation =[NSNumber numberWithDouble:rotation];

    NSLog(@"rotation%@",self.photoParent);
}
share|improve this question

1 Answer 1

See my answer here.

Applying a "Make.." transform will wipe out any previously-applied transforms. You need to use the cumulative form, CGAffineTransformRotate

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.