Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
UIImagePickerViewController无法激活iOS11';s相册权限,但可以加载照片和视频_Ios_Uiimagepickercontroller - Fatal编程技术网

UIImagePickerViewController无法激活iOS11';s相册权限,但可以加载照片和视频

UIImagePickerViewController无法激活iOS11';s相册权限,但可以加载照片和视频,ios,uiimagepickercontroller,Ios,Uiimagepickercontroller,为什么UIPickerView可以在没有iOS11许可的情况下加载照片和视频? 似乎没有任何权限警报弹出窗口。 iOS11-通用汽车公司 xcode9测试版4 新的空白应用程序: #import "ViewController.h" #import <AVFoundation/AVFoundation.h> @interface ViewController () <UINavigationControllerDelegate,UIImagePickerC

为什么UIPickerView可以在没有iOS11许可的情况下加载照片和视频? 似乎没有任何权限警报弹出窗口。

iOS11-通用汽车公司 xcode9测试版4

新的空白应用程序:

#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我的意思是此处没有警报,我无法选择允许或不允许,因为没有警报视图弹出,但是可以访问照片库。这是新的空白应用程序。我的意思是这里没有警报,我不能选择允许或不允许,因为没有警报视图弹出,但可以访问照片库。这是一个新的空白应用程序。