MPMediaLibrary.requestAuthorization { (status) in
       if status == MPMediaLibraryAuthorizationStatus.authorized  {
          print("Accepted")
       } else {
          print("not authorized")
       }
    }

上面的代码运行良好,直到12.3.1更新iOS。但现在根本不需要关闭。有人遇到过这样的事吗?还是我错过了什么?

最佳答案

    MPMediaLibrary.requestAuthorization { (status) in
        if status == .authorized {
            print("Accepted")
        } else {
            print("not authorized")
        }
    }

关于ios - 媒体库的授权未运行处理程序,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/56539887/

10-11 22:21
查看更多