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

稳定的crash: 刷新数据+JXSegmentedListContainerView #225

Closed
liusr opened this issue Feb 1, 2023 · 1 comment
Closed

稳定的crash: 刷新数据+JXSegmentedListContainerView #225

liusr opened this issue Feb 1, 2023 · 1 comment

Comments

@liusr
Copy link

liusr commented Feb 1, 2023

您好,刷新数据+JXSegmentedListContainerView ,在这个例子中,有如下crash场景:
LoadDataViewController中配置数据源添加segmentedDataSource.isItemWidthZoomEnabled = true
然后在getRandomTitles方法中每次让数据源减少,刷新后不点击标题,直接左右滑动底部的列表会crash。
原因出在animator?.progressClosure中维持了旧的index导致下面的代码越界。

@pujiaxin33
Copy link
Owner

感谢反馈,已修复。

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