使用uiimagepicker从相机中选取正方形区域遇到的问题

之前使用的是原生的UIImagePickerController,代码如下:

UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.sourceType = sourceType;
picker.allowsEditing = self.editAble.boolValue;
picker.modalPresentationStyle = (sourceType == UIImagePickerControllerSourceTypeCamera) ? UIModalPresentationFullScreen : UIModalPresentationPopover;
[self presentViewController:picker animated:YES completion:nil];

获取图片:

image = [info valueForKey:UIImagePickerControllerEditedImage];

问题现象:

如上图,不能移动方形区域到我想要的位置,参考下面的说法,原来是苹果的锅:

https://stackoverflow.com/questions/41706549/cant-pan-image-taken-from-camera-with-uiimagepicker

只能自己写了,未完待续

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s