IOS 旋转图片

IOS   旋转图片代码如下:

self.MyImageView.contentMode=UIViewContentModeScaleAspectFit;

UIImage*imageDemo=[UIImageimageNamed:@"11.png"];

UIImage*newImage=[UIImageimageWithCGImage:imageDemo.CGImagescale:1orientation:UIImageOrientationLeft];

//self.MyImageView.image=[UIImage imageNamed:@"11.png"];

self.MyImageView.image=newImage;


你可能感兴趣的:(IOS 旋转图片)