问题
I've written an app that requests access to the iPad's calendar. Under iOS 6, a system dialog appears that asks the user if that's okay.
Problem is, I can't replicate that situation once it's happened. For testing purposes, I want to force that dialog to come up consistently. Instead, the OS caches previous settings and doesn't bring up the dialog again. This is still the case even if I delete the app off the iPad and re-install. (Changing the app name and bundle fixes the problem, but I don't want to do that every time I test.)
Does anyone know how to force this to appear?
Thanks.
回答1:
Settings > General > Reset > Reset Location and Privacy
回答2:
You can Reset Location and Privacy as suggested by Greg Maletic but if you do not want to reset all your apps, you can just change the bundle identifier of your app.
回答3:
On iOS 9 and later version,uninstall and install the app,access permission dialog will appeared. But iOS 8 will remember what you choose.
回答4:
On iOS 10.2.1:
I simply uninstall and reinstall the app again, the permission dialog appeared again.
来源:https://stackoverflow.com/questions/13635288/ios-calendar-access-permission-dialog-force-it-to-appear