1and2papa / CTAssetsPickerController

iOS control that allows picking multiple photos and videos from user's photo library.
MIT License
2.15k stars 550 forks source link

Black screen after first time import #254

Closed rat-moonshine closed 6 years ago

rat-moonshine commented 6 years ago

Hi there!

I'm having a problem with my iOS 10 run, can you please check?

This is happening only after the first time items import - when user being asked with permission. Here's more clearly what is happening:

However, next time when the app has authorisation and no authorisation prompt came, dismissing CTAssetsPicker do not leave any blank dark background. My calling codes are as follows:

PHPhotoLibrary.requestAuthorization {
                (status:PHAuthorizationStatus) -> Void in

                DispatchQueue.main.async
                {
                    let picker = CTAssetsPickerController()
                    picker.title = title
                    picker.delegate = self

                    self.present(picker, animated: true, completion: nil)
                    ConstantsVO.isImportWindowOpened = false
                }
            }

Can you guess any reason why it's may happening?

Thanks!

rat-moonshine commented 6 years ago

It turns out that I had some loose points in my code. Once fixed, I do not have the black screen problem. Thanks!