我有一个 iOS 应用程序,我在其中显示了一个图像选择器
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];
然而,该应用根本不请求权限,它只是显示错误消息“此应用无权访问您的照片或视频”。
关于可能导致此问题的任何想法?
提前致谢!
最佳答案
问题是 Bundle Display Name 没有在 Info.plist 中设置
关于ios - UIImagePickerController 在 iOS 9 上不请求权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33009290/