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

sourecView是UICollectionview #44

Closed
fanyuexiang opened this issue Jan 11, 2021 · 1 comment
Closed

sourecView是UICollectionview #44

fanyuexiang opened this issue Jan 11, 2021 · 1 comment

Comments

@fanyuexiang
Copy link

由于UICollectionview的重用机制,UICollectionview的subviews可能多于cell的数量,subviews(重用池)内有一个隐藏的cell,导致获取到的index不准确,使隐藏动画图片缩放时不准确。

@fanyuexiang
Copy link
Author

暂时在cell重用时清空UICollectionview的subviews来解决了,强行让九宫格图片数和UICollectionview的subviews数量一致了

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

No branches or pull requests

1 participant