- iOS13 UIImagePickerController导航栏
- UIImagePickerController 照片被导航栏遮挡
- 关于WRNavigationBar iOS12、iOS13导航栏
- 关于WRNavigationBar iOS12、iOS13导航栏
- UIImagePickerCOntroller导航栏颜色设置
- UIImagePickerController 被导航栏挡住
- UIImagePickerController iOS11调起相
- ios开发 升级ios13之后,导航栏上面出现的bug
- 更改系统相机UIImagePickerController导航栏
- iOS解决UIImagePickerController的导航栏
在选择打开相册之前
if (@available(iOS 11.0, *)) {
[[UIScrollView appearance] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentAutomatic];
}
如果你的项目之前设置为UIScrollViewContentInsetAdjustmentNever,关闭相册之后记得重置。
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
// 还原为 UIScrollViewContentInsetAdjustmentNever
if (@available(iOS 11.0, *)) {
[[UIScrollView appearance] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];
}
[picker dismissViewControllerAnimated:YES completion:nil];
}
网友评论