UIImagePickerViewController无法激活iOS11';s相册权限,但可以加载照片和视频
为什么UIPickerView可以在没有iOS11许可的情况下加载照片和视频? 似乎没有任何权限警报弹出窗口。 iOS11-通用汽车公司 xcode9测试版4 新的空白应用程序:UIImagePickerViewController无法激活iOS11';s相册权限,但可以加载照片和视频,ios,uiimagepickercontroller,Ios,Uiimagepickercontroller,为什么UIPickerView可以在没有iOS11许可的情况下加载照片和视频? 似乎没有任何权限警报弹出窗口。 iOS11-通用汽车公司 xcode9测试版4 新的空白应用程序: #import "ViewController.h" #import <AVFoundation/AVFoundation.h> @interface ViewController () <UINavigationControllerDelegate,UIImagePickerC
#import "ViewController.h"
#import <AVFoundation/AVFoundation.h>
@interface ViewController () <UINavigationControllerDelegate,UIImagePickerControllerDelegate>
@end
@implementation ViewController
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
UIImagePickerController *vc = [[UIImagePickerController alloc] init];
UIImagePickerControllerSourceType sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES;
picker.sourceType = sourceType;
vc.delegate = self;
[self presentViewController:vc animated:YES completion:nil];
}
#导入“ViewController.h”
#导入仅要求一次权限。如果你允许它,那么你不会每次都得到警告。所以,如果你想再次检查它,然后删除你的应用程序并重新安装,你会发现提示请求许可 只需请求一次许可即可。如果你允许它,那么你不会每次都得到警告。所以,如果你想再次检查它,然后删除你的应用程序并重新安装,你会发现提示请求许可 首先删除应用程序并重新安装,然后选中请编辑您的问题,这是UIImagePickerController而不是UIPickerService首先删除应用程序并重新安装,然后选中请编辑您的问题,这是UIImagePickerController而不是UIPickerService我的意思是此处没有警报,我无法选择允许或不允许,因为没有警报视图弹出,但是可以访问照片库。这是新的空白应用程序。我的意思是这里没有警报,我不能选择允许或不允许,因为没有警报视图弹出,但可以访问照片库。这是一个新的空白应用程序。