PHCachingImageManager.stopCachin

2018-06-04  本文已影响15人  Harry_Lee
屏幕快照 2018-05-12 下午10.50.29.png

PHCachingImageManager.stopCachingImagesForAllAssets调用之前判断是否有相册访问权限

deinit {
        if PHPhotoLibrary.authorizationStatus() != .authorized {
            return
        }

        PHPhotoLibrary.shared().unregisterChangeObserver(self)
        PHCachingImageManager.stopCachingImagesForAllAssets()
    }
上一篇下一篇

猜你喜欢

热点阅读