ios11调用系用相册崩溃
来源:互联网 发布:java给qq邮箱发邮件 编辑:程序博客网 时间:2024/06/05 04:57
AlertVC的弹出样式设置为alert,之前设置成了actionsheet(这种情况下还要设置frame,横竖屏,比较繁琐,但不设置的话崩溃)
- (void)changePhotoImg {
UIAlertController * sheetController = [UIAlertController alertControllerWithTitle:@"请选择照片"message:nil preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction * Cancel = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil];
UIAlertAction * Done = [UIAlertAction actionWithTitle:@"拍照" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
[self selectImageSourceType:UIImagePickerControllerSourceTypeCamera];
}];
UIAlertAction * Destructive = [UIAlertAction actionWithTitle:@"从相册选择头像" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
[self selectImageSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
}];
[sheetController addAction:Cancel];
[sheetController addAction:Done];
[sheetController addAction:Destructive];
[self presentViewController:sheetController animated:YES completion:nil];
}
阅读全文
0 0
- ios11调用系用相册崩溃
- ios11崩溃
- iOS10 调用相册崩溃等问题解决
- ios11截图崩溃
- UIImagePickerController在iOS11访问相册
- iOS11 调取相册相机问题
- iOS 横评调用相册 之 iPhone 也崩溃
- APP调用系统相册,使用3DTouch重压,崩溃
- iOS中 iOS10 调用相机相册等权限崩溃问题
- Android 调用系统相册,针对6.0以上 崩溃 解决办法
- iOS 采用@available(iOS 11.0, *)适配 iOS11,会引起调用系统相册时,系统界面上移问题
- iOS11适配点击按钮崩溃
- 解决横屏时调用系统相册崩溃的问题
- 解决在 iPad 的横屏情况下调用相册崩溃的问题
- Xcode8 ios 10 调用相机、相册、麦克风、位置等隐私问题崩溃解决办法
- iOS开发之Debug之iOS11相册权限
- iOS 访问相册或者相机时崩溃
- iOS10 关于相机相册崩溃问题
- 基于ionic2 的移动app开发过程《4》
- iOS11关于隐藏导航栏后带有scrollView界面出现,下移问题
- ubuntu14.04 nuttx开发环境的搭建
- 手动卸载删除ActiveX控件。
- 移动端开发技术浅析
- ios11调用系用相册崩溃
- 广州数控车床M代码指令讲解
- uiautomator简介
- MySQL 优化参考
- sql server charindex函数和patindex函数详解(转)
- 【云栖大会】阿里云联合中科院量子创新研究院发布量子计算云平台
- Oracle的关于建表,约束,查询等的练习
- 机器学习技法课程学习笔记16 -- Finale
- Android studio导入项目后无法运行并且所有文件都处于禁止状态