Skip to content
New issue

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

确保以下方法在主线程中调用,避免由于在子线程中调用出现概率闪退 #1662

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JunkyTang
Copy link

  • (PHFetchResult<PHAssetCollection *> *)fetchAssetCollectionsWithType:(PHAssetCollectionType)type subtype:(PHAssetCollectionSubtype)subtype options:(nullable PHFetchOptions *)options;

+ (PHFetchResult<PHAssetCollection *> *)fetchAssetCollectionsWithType:(PHAssetCollectionType)type subtype:(PHAssetCollectionSubtype)subtype options:(nullable PHFetchOptions *)options;
@banchichen
Copy link
Owner

getAllAlbumsWithFetchAssets本身没有访问UI,不会导致问题。你是在某个代理方法里访问了UI吗?可以在你的代理方法实现中,把访问UI的部分放到主线程去执行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants