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

列表左右滑动存在Bug!会导致UIViewController生命周期错误!!! #505

Open
Arthas-cn opened this issue Mar 28, 2024 · 1 comment

Comments

@Arthas-cn
Copy link

Arthas-cn commented Mar 28, 2024

bug描述
列表左右滑动存在Bug!会导致UIViewController生命周期错误!

版本号
1.JXCategoryView版本号:1.6.3
2.手机系统版本号:any
3.手机型号:any

复现步骤
遇到问题的相关效果、类是:
1.有一个UIViewController作为父容器称作ContainerA,父容器ContainerA有三个子视图UIViewController,B、C、D。

2.先选中中间视图C,然后稍微向右滑动(露出B视图,JXCategoryListContainerView),再松手(还是显示C视图),B执行了viewWillAppear,C执行了viewWillDisappear。没有执行后续操作了,会导致子视图的生命UIViewController周期执行不正确;

3.正确行为应该是,当再松手(还是显示C视图)时,B要执行一次UIViewController生命周期消失的操作(viewWillDisappear、viewDidDisappear),C要执行一次UIViewController生命周期出现的操作(viewWillAppear、viewDidAppear)

截图、GIF

@pujiaxin33
Copy link
Owner

可以上传一个demo吗?

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