UIImagePickerController 不请求权限?
UIImagePickerController not ask permission?
我已经在我们的应用程序中使用了 UIImagePickerController,但是权限警告并没有出现在第一次。任何解决方案?
提前致谢。
iOS 缓存用户对权限请求的响应,即使您删除并重新安装该应用程序,该缓存也会保留。如果您在模拟器中,懒惰的解决方案是重置模拟器。在设备上,如果您的权限警报没有显示,那么我怀疑您的 phone 已经在您的应用程序设置中有一个隐私条目。
如果您的代码正确,那么此解决方案将适用于您。
1.Uninstall the app from the device.
2.Restart the device.
3.After restarting change the date to next day in date and time settings.
4.Then again restart the device.
5.Now run the app.You can see the permission alert.
此解决方案适用于 me.If 它对您有帮助,请告诉我。
我已经在我们的应用程序中使用了 UIImagePickerController,但是权限警告并没有出现在第一次。任何解决方案? 提前致谢。
iOS 缓存用户对权限请求的响应,即使您删除并重新安装该应用程序,该缓存也会保留。如果您在模拟器中,懒惰的解决方案是重置模拟器。在设备上,如果您的权限警报没有显示,那么我怀疑您的 phone 已经在您的应用程序设置中有一个隐私条目。
如果您的代码正确,那么此解决方案将适用于您。
1.Uninstall the app from the device.
2.Restart the device.
3.After restarting change the date to next day in date and time settings.
4.Then again restart the device.
5.Now run the app.You can see the permission alert.
此解决方案适用于 me.If 它对您有帮助,请告诉我。