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

可否增加UIViewController的addChildViewController和removeChildController的管理呢? #8

Closed
JianboYan opened this issue Mar 10, 2016 · 3 comments

Comments

@JianboYan
Copy link

如题, 因为有些页面是用的那两个方法添加和移出的, 希望可以拓展这个库的能力

@Zepo
Copy link
Collaborator

Zepo commented Mar 17, 2016

在我们自己的项目中一般 childViewController 会通过成员变量的方式持有,方便反复地 add 和 remove,这种情况下 removeChildController 也不会释放。不知道你们使用 childViewController 的习惯是怎样的?或者可以加个开关,控制是否监测 childViewController

@MoZhouqi
Copy link

可以在检测应该被释放的 view controller 的同时递归遍历其 child view controller 的释放情况。

@Zepo
Copy link
Collaborator

Zepo commented Mar 18, 2016

目前已经在 view controller 释放的时候遍历 childViewControllers,但对于 removeFromParentViewController 的情况没有监测是否释放。

@Zepo Zepo closed this as completed May 9, 2016
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

3 participants