Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/114.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 旋转UIImageView后更改缩放UIImageView_Iphone_Ios_Objective C_Rotation_Scale - Fatal编程技术网

Iphone 旋转UIImageView后更改缩放UIImageView

Iphone 旋转UIImageView后更改缩放UIImageView,iphone,ios,objective-c,rotation,scale,Iphone,Ios,Objective C,Rotation,Scale,在我的图片中使用了新的比例,然后我应用了旋转,然后比例图像变为旧的比例 -(void)rotate:(UIRotationGestureRecognizer *)rotationRecognizer{ double rotation; rotation=rotationRecognizer.rotation; ((UIImageView*)[rotationRecognizer view]).transform = CGAffineTransformMakeRotatio

在我的图片中使用了新的比例,然后我应用了旋转,然后比例图像变为旧的比例

-(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);
}
看看我的答案

应用“Make..”变换将删除以前应用的任何变换。您需要使用累积形式,
cGraffineTransformRotate