my question is quite simply, how can I popup the following view in my app?

No Access To Photos Or Videos

I've seen this in quite a lot of apps, so I believe this is a system-level view controller? But what is it? How can I show it in my app?

有帮助吗?

解决方案

As far as I know, that is NOT a system provided view. You'll have to detect a denial of permission by the user, and then create a view to display. Many people copy Apple's style for this view in order to make their apps 'blend in' with the platform, but its not directly provided to third party developers.

其他提示

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).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top