Permission to take photo OR get image from library not shown in iOS9 (Xcode 7beta, Swift2)

倖福魔咒の 提交于 2019-12-03 07:56:46

You need to set a new pair of Info.plist values, same as the String for Location Services would be in iOS8:

Just set your description string for those.

Check info.plist.

if "Bundle display name" set as nothing,

At iOS 8.1 will popup permission window like this

"" Would Like to Access Your Photos

But at iOS 9, there is no popup permission at all.

Also, no permission setting, at Setting > Privacy > Photos > Your app name.

To solve this,

Remove "Bundle display name" in your info.plist.

Apparently this appears to be an issue with iOS9. For some reason the permission access dialog does not pop up. I have successfully tested on iOS8, using the same code.

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