在我的应用程序中仅在纵向模式下工作 . 但是具有Gallery功能的应用程序 . 在图库中,用户可以查看图像,我想以横向和纵向模式旋转图像 . 如何在iOS中实现此功能 .
您可以像在Imageview中一样旋转图像
self.imageview.transform = CGAffineTransformMakeRotation(M_PI * 90 / 180.0);//90 as in 90 degree
myImage.center = CGPointMake(0, 0); myImage.transform = CGAffineTransformMakeRotation([degreesToRadians:imageRotationFix]);
2 回答
您可以像在Imageview中一样旋转图像