Change scale UIImageView after rotation UIImageView
Good morning. With the use of new scale to my picture, I then apply
rotation ale case of late 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);
}
No comments:
Post a Comment