app name doesn't appear in permission request alert

爱⌒轻易说出口 提交于 2020-01-04 05:58:30

问题


I am using UIImagePickerController to allow the user to pick images from the device.

When doing it the first time, I get a standard permission request alert, but the app name is missing..

I couldn't find any mention for this in the documentation.

 imagePickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
        imagePickerController.mediaTypes = @[(NSString *)kUTTypeImage];
        [self presentViewController:imagePickerController animated:YES completion:nil];

Other permission request (like location services) are displaying the app name appropriately.


回答1:


for some reason, bundle display name in info.plist was blank..

changed it back to $(PRODUCT_NAME) and issue is solved



来源:https://stackoverflow.com/questions/29581542/app-name-doesnt-appear-in-permission-request-alert

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!