如图
代码
self.picker = [[UIImagePickerController alloc] init];//初始化self.picker.allowsEditing = YES;//设置可编辑
self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
self.picker.delegate = self;
[self presentViewController:self.picker animated:YES completion:nil];//进入相册界面
这种情况只在iOS11出现了,我的其他手机没有问题
我也遇到这个,是这样解决的
原因应该是全局设置了UIScrollView.appearance.contentInsetAdjustmentBehavior,导致系统相册出现的问题
if (@available(iOS 11, *)) {
在进入的时候
if (@available(iOS 11, *)) {
在选择照片或退出时候
if (@available(iOS 11, *)) {