相机拍摄图片方向调整
1
2
3
4
5
6
| if (image.imageOrientation != UIImageOrientationUp) {
UIGraphicsBeginImageContext(image.size);
[image drawInRect:CGRectMake(0, 0, image.size.width, image.size.height)];
image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
}
|
Playground running 卡死
1、修改platform为Mac OS;
2、修改为手动执行;
3、为手动执行增加快捷键;