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

发现如果一个弹窗类似的View使用pageView会导致内部的VC被使用View的VC的children持有导致生命周期被延长 #488

Open
RITL opened this issue Sep 11, 2023 · 0 comments

Comments

@RITL
Copy link

RITL commented Sep 11, 2023

bug提交前阅读
1.请先仔细阅读文档,尤其是【其他注意事项】文档,里面有常见问题的解决方案;
2.请先搜索已有的Issues,尝试找到相同问题的讨论;
3.请先阅读相关类的API、源码,尝试从源码找到答案;
4.如果以上步骤都未能解决你的疑问,欢迎提交ISSUE;

bug描述
发现如果一个弹窗类似的View使用pageView会导致内部的VC被使用View的VC的children持有导致生命周期被延长
版本号
1.JXPagingView版本号:?
2.OC还是Swift版本:OC
3.手机系统版本号:?
4.手机型号:iPhone

复现步骤

  • 声明一个View,里面使用pageView.
  • 数据源回调里面使用ListViewController.
  • 在ViewControllerA中弹出View.
  • 切换几次之后,将View removeFromSuperView 释放.
  • 发现JXPagerListContainerViewController依旧被ViewControllerA所持有(因为被addChild:),导致ListViewController生命周期被延长

截图、GIF
提供bug出现时的截图或者GIF。

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