We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug 表现 QMUIAssetsManager获取相簿时间过长
截图
如何重现
预期的表现 打开相册不应该时间太久 研究发现是
应该优化一下
其他信息
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug 表现
QMUIAssetsManager获取相簿时间过长
截图
如何重现
预期的表现
打开相册不应该时间太久
研究发现是
方法耗时较多,QMUI中,QMUIAssetsManager的enumerateAllAlbumsWithAlbumContentType:方法中遍历了PHAssetCollection对象并调用该方法用户获取相簿中图片数,后续初始化QMUIAssetsGroup又调用了一次用于模型内部phFetchResult属性,这调用的两次使得耗时增加了一倍
应该优化一下
中如果PHFetchResult.count>0 即直接用于初始化 QMUIAssetsGroup
最后返回 QMUIAssetsGroup 对象数组
其他信息
The text was updated successfully, but these errors were encountered: