摘要:View Code 1 @implementation UIImage (fixOrientation) 2 3 - (UIImage *)fixOrientation { 4 5 // No-op if the orientation is already correct 6 if (self.imageOrientation == UIImageOrientationUp) return self; 7 8 // We need to calculate the proper transformation to make the image upright....
阅读全文