UIImagePickerController不要求iOS 9上的权限 [英] UIImagePickerController not asking for permissions on iOS 9

查看:149
本文介绍了UIImagePickerController不要求iOS 9上的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个iOS应用程序,我提供了一个图像选择器

I have an iOS app where I present an image picker the

self.picker = [[UIImagePickerController alloc] init];
self.picker.delegate = self;
self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

self.popover = [[UIPopoverController alloc] initWithContentViewController:self.picker];
[self.popover presentPopoverFromRect:CGRectMake(100, 100, 1, 1) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];

该应用程序根本不会要求权限,只显​​示错误消息此应用程序无法访问您的照片或视频。

The app however doesn't ask for permissions at all, it just displays the error message "This app does not have access to your photos or videos".

关于可能导致此问题的任何想法?

Any ideas on what might cause this?

谢谢提前!

推荐答案

问题是Info.plist中没有设置Bundle Display Name

The issue was the the Bundle Display Name wasn't set in the Info.plist

这篇关于UIImagePickerController不要求iOS 9上的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆