【发布时间】:2018-03-27 11:53:48
【问题描述】:
我正在使用 UIImagePickerController 来选择照片并裁剪图像。
这与在 https://forums.developer.apple.com/thread/88286
这是我的代码:
- (void) onTest:(UIButton *)btn {
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
picker.delegate = self;
picker.allowsEditing = YES;
[picker setModalPresentationStyle: UIModalPresentationOverCurrentContext];
[self presentViewController:picker animated:YES completion:nil];
}
这是视图层。我没有添加这个 UIView。 我无法按下取消按钮,也无法放大/缩小。
iOS 10 没有问题。我只有 iOS 11 有问题。
【问题讨论】:
-
您是否尝试过bringSubViewToFront: 选择器将其带到此视图的前面以阻止触摸?
-
你最后找到解决方案了吗?
标签: ios objective-c iphone uiimagepickercontroller ios11