How to flip UIImage horizontally? 如何旋转图片,IOS前置摄像头左右成像

UIImage* sourceImage = [UIImage imageNamed:@"whatever.png"];
UIImage* flippedImage = [UIImage imageWithCGImage:sourceImage.CGImage 
                         scale:1.0 orientation: UIImageOrientationLeftMirrored];

猜你喜欢

转载自duchengjiu.iteye.com/blog/1918051