iOS 7上的UIImagePickerController:Square模式?

Rob*_*Rob 5 objective-c uiimagepickercontroller

我现在正在使用iOS 7,试图让UIImagePickerController让用户选择一个方形模式,因为它现在是iOS 7中的一个功能.是否需要启用此功能才能启用此功能?相关代码发布在下面,虽然它非常标准.

UIImagePickerController *cameraView = [[UIImagePickerController alloc] init];
cameraView.sourceType = UIImagePickerControllerSourceTypeCamera;
cameraView.delegate = (id)self;
[self presentViewController:cameraView animated:YES completion:nil];
Run Code Online (Sandbox Code Playgroud)

我一直在搜索可用的凌乱的iOS 7文档,但我甚至无法判断他们是否更改了开发人员库 - 我没有看到任何新内容.

tho*_*b65 8

将allowEditing设置为YES.从结果dict使用键UIImagePickerControllerEditedImage

然后你将得到平方图像.

我发现无法让用户选择,他想要哪种格式:(

  • 此外,在iOS 6,7和8中似乎存在一个未修复的错误,其中allowEditing带来的屏幕实际上并没有让用户移动照片. (4认同)

bne*_*ely 0

我查看了UIImagePickerControllerXcode 中的 iOS 7 标头,没有看到 7.0 的新 API 或方形照片模式。方形照片模式似乎是该应用程序的一项功能,而不是UIImagePickerController.