问题标签 [alauthorizationstatus]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
376 浏览

ios - iOS: Control access to camera roll new appear

in my app I use ALAssetsLibrary to load access at photos in camera roll; The first time I start my app I see the classic message, if I want give the permission to access at the photo library or not.

But I want to test this situation in each case (allow and not allowed) but I'm not able show again this message; I tried to delete app, change number version, change bundle identifier, but nothing!

Every time I run my app it not show me this message and I have ever the permission to access in the library image; I want to test what happen if I select NO.

(I know that I can change this option in general settings, but in this case I control all in viewdidappear) I want to know what happen If I select no with that message, then is it possible show again that alert? thanks

0 投票
1 回答
1714 浏览

ios - 首次未确定授权状态如何处理

实用程序.m

在我的实用程序类中,我编写了这两种方法,目的只是为了告诉授权状态是什么。

如果用户已经alloweddenied权限,这些方法将正常工作,但这些方法第一次要求用户权限并且授权状态为not determined. 如果用户allowdeny我第一次没有获得更新的授权状态。如何处理?