问题描述
我写了一个应用程式,要求存取iPad的日历。在iOS 6下,会出现一个系统对话框,询问用户是否可以。
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.
问题是,一旦发生这种情况,我不能复制这种情况。为了测试的目的,我想强制该对话框一致地出现。相反,操作系统缓存以前的设置,不会再次显示对话框。这仍然是这种情况,即使我从iPad删除应用程序和重新安装。 (更改应用程序名称和捆绑包解决了问题,但我不想每次测试时都这样做。)
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?
感谢。
推荐答案
设置>常规>位置和隐私
Settings > General > Reset > Reset Location and Privacy
这篇关于iOS日历访问权限对话框,强制它出现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!