Save UIImage, Load it in Wrong Orientation

后端 未结 5 1961
无人共我
无人共我 2020-12-13 04:03

I am using the following code to save and load images that I pick from either the library or take using the camera:

//saving an image
- (void)saveImage:(UIIm         


        
5条回答
  •  一向
    一向 (楼主)
    2020-12-13 04:35

    Try to save the image orientation too, then when you load that image, check if that's the correct orientation, and if not, rotate the image with CGAffineTransform or whatever you want.

提交回复
热议问题