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

ios 15会闪退 #54

Closed
18621504096 opened this issue May 24, 2022 · 6 comments
Closed

ios 15会闪退 #54

18621504096 opened this issue May 24, 2022 · 6 comments

Comments

@18621504096
Copy link

在ios15以下可以正常工作但是ios15会闪退报错
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UICollectionView (<UICollectionView 0x14433f000>) is stuck in its update/layout loop. This can happen for many reasons, including self-sizing views whose preferred attributes are not returning a consistent size. To debug this issue, check the Console app for logs in the "UICollectionViewRecursion" category.'
不知道是什么原因

@18621504096
Copy link
Author

[super invalidateLayoutWithContext:context];

@czl0325
Copy link
Owner

czl0325 commented Jun 2, 2022

怎么会闪退呢?我在模拟器上测试15.5都运行正常,你用我的demo会闪退吗

@czl0325
Copy link
Owner

czl0325 commented Jun 15, 2022

再试看看

@czl0325
Copy link
Owner

czl0325 commented Jun 15, 2022

更新1.4.6

@18621504096
Copy link
Author

因为一直没找到问题用别的第三方先替代了一下,最近找到了这个问题好像是因为我用了预估高度导致的,在ios15以下都可以的ios15以上的就会报错
layout.estimatedItemSize

@18621504096
Copy link
Author

把这一行注释掉就可以了

@czl0325 czl0325 closed this as completed Jun 21, 2022
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

2 participants