iOS webview app crash when accessing iPhone photo library

我的梦境 提交于 2020-01-26 04:11:07

问题


iOS webview app crash when accessing iPhone photo library

I was trying to upload photos using wordpress media library, after i click upload button, two options pop up from iphone: photo from iPhone photo library or from cloud. After clicking iphone photo library option, the app quits.

Any idea is Appreciated


回答1:


You need to add Photo library permission in your app

open your info.plist file add bellow xml code

<key>NSPhotoLibraryUsageDescription</key>
<string>Allow to access photo library.</string>

if your app use camera then also add this code in info.plist file

<key>NSCameraUsageDescription</key>
<string>Allow to access camera.</string>

if you don't know to how to open info.plist in xml code then check this image



来源:https://stackoverflow.com/questions/41056235/ios-webview-app-crash-when-accessing-iphone-photo-library

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