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

Weak reference #11

Closed
Barry0327 opened this issue Feb 7, 2022 · 0 comments
Closed

Weak reference #11

Barry0327 opened this issue Feb 7, 2022 · 0 comments

Comments

@Barry0327
Copy link

Is there a reason not to make the controller and delegate weakly in the ContainerController?

Since they are all strong references so I have to call remove() every time I dismiss the root view controller so it won't produce a memory leak, I have tried to make them weak and it works fine, and I don't have to call remove() anymore to prevent memory leak.

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