Objective C - How to detect user has clicked Don't Allow access to photos button

前端 未结 3 1677
一个人的身影
一个人的身影 2020-12-31 23:30

I am using a UIImagePicker to present the users photos so that the user can choose an image to be used in my app.

My problem is that on the first time a user opens t

3条回答
  •  一个人的身影
    2021-01-01 00:34

    Use ALAssetsLibrary authorizationStatus. There is a specific return value that indicates your app has been denied.

    Doing a search here on that method will reveal some sample code for properly handling the various authorization states.

提交回复
热议问题