iOS 11打开系统相册列表向上偏移问题
2017-12-04 17:50
856 查看
问题如图
该问题是因为设置了
引起的。
解决方案
在弹出系统相册前加入
在 - (void)imagePickerController:(UIImagePickerController )picker didFinishPickingMediaWithInfo:(NSDictionary
就解决了!!!
该问题是因为设置了
if (@available(iOS 11, *)) { UIScrollView.appearance.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; }
引起的。
解决方案
在弹出系统相册前加入
if (@available(iOS 11, *)) { UIScrollView.appearance.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAutomatic; }
UIImagePickerController *ipc = [[UIImagePickerController alloc] init]; ipc.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; ipc.delegate = self; ipc.allowsEditing = YES; if (@available(iOS 11, *)) { UIScrollView.appearance.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAutomatic; } [self presentViewController:ipc animated:YES completion:nil];
在 - (void)imagePickerController:(UIImagePickerController )picker didFinishPickingMediaWithInfo:(NSDictionary
if (@available(iOS 11, *)) { UIScrollView.appearance.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; }
就解决了!!!
相关文章推荐
- iOS开发:iOS10.2手机系统打开相册遇到的各种显示英文文字的问题
- iOS 11 自定义UINavigationBar适配问题,导航条向上偏移20点问题
- 打开系统相册裁剪图片,已解决裁剪大图的问题
- sharepoint 2013 文档库 使用资源管理器打开是灰色的,浏览器版本是IE 9在IE 11可正常打开,或提示在文件资源管理器中打开此位置时遇到问题,将此网站添加到受信任站点列表,然后重试
- iOS 打开系统相册和使用相机
- iOS打开系统相册显示中文方法
- Android4.4打开系统相册返回Null问题
- IOS 横屏 打开相册 问题
- iOS解决navigationBar因为图片尺寸问题造成的会向上偏移64的问题
- iOS 11 导航栏按钮偏移问题
- IOS 11导航返回按钮偏移的问题
- iOS UITextView高度小于100出现文字向上偏移问题?
- iOS 11 中scrollview布局往下偏移问题automaticallyAdjustsScrollViewInsets、contentInsetAdjustmentBehavior(iOS 11
- JS中兼容实现android和ios系统手机打开相机并可选择相册功能
- ios 11以上系统,tableview上啦刷新,indexPath.row,自动加5,引起数组越界的问题导致崩溃
- iOS 调用系统相机、相册时显示中文问题
- iOS 11 关于相册权限的问题
- [Unity]IOS系统升级到IOS 11后,UIInput无法弹出软键盘的问题
- iOS 11 关于相册权限的问题
- 关于刷新列表向上偏移问题