我的问题很简单,如何在我的应用程序中弹出以下视图?
我在很多应用程序中都看到了这一点,所以我相信这是一个系统级的视图控制器?但它是什么?如何在我的应用程序中显示它?
据我所知,这不是系统提供的视图。您必须检测到用户拒绝许可,然后创建要显示的视图。许多人为此视图复制 Apple 的风格,以使他们的应用程序与平台“融合”,但并不直接提供给第三方开发人员。
You do not have to pop this by yourself. Whenever you implement functionality that needs privacy settings, the OS asks the user if he would like to let your app to use this functionality (for example contacts or camera) automatically. If he denies to give access, then he will be presented with a view like this one whenever he tries to use that functionality again (unless of course if he has changed the settings manually in privacy settings).