PHP中文网2017-04-18 09:22:59
It seems that the box cannot be turned into a rectangle using the native method. You can consider using third-party libraries, such as PEPhotoCropEditor
天蓬老师2017-04-18 09:22:59
UIGraphicsBeginImageContext(size);
[image drawInRect:CGRectMake(0, 0, size.width, size.height)];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
你改变写size就知道了
巴扎黑2017-04-18 09:22:59
It is recommended that you use CaptureSession to build your own camera. If you have high customization requirements for the camera interface, iamgePickerController will disappoint you.