Photopicker & FB GrapSharer issues in iOS 11

前端 未结 1 559
[愿得一人]
[愿得一人] 2021-02-10 15:53

My code was working fine on iOS 10 but after updating to iOS 11 nothing seems to work.

This is my code For sharing video on facebook :

internal func imag         


        
1条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-10 16:45

    Okay, this is about asking permissions which I already asked at the beginning of my app. Still I need to ask again, I dont know why, but it worked.

    PHPhotoLibrary.requestAuthorization({ (status: PHAuthorizationStatus) -> Void in
                ()
    
                if PHPhotoLibrary.authorizationStatus() == PHAuthorizationStatus.authorized {
                    print("creating 2")
                    // Impelement UiImagepicker method
                }
    
            })
    

    0 讨论(0)
提交回复
热议问题