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

在pushViewController中再present一个UINavigationController, dismiss之后会报内存泄露。 #53

Closed
smoothdvd opened this issue Apr 30, 2017 · 1 comment

Comments

@smoothdvd
Copy link

smoothdvd commented Apr 30, 2017

[self.closestViewController.navigationController pushViewController:detailVC animated:YES];

then in detailVC:

SigninViewController *signinVC = [[SigninViewController alloc] init];
signinVC.delegate = self;
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:signinVC];
[self presentViewController:nav animated:YES completion:nil];

If I call dismiss in signInVC:

[self dismissViewControllerAnimated:YES completion:nil];

modal viewcontroller closed and will report memory leak:

2017-04-30 10 44 35

@Zepo
Copy link
Collaborator

Zepo commented May 2, 2017

那就是你的 SigninViewController 没释放,在这个场景下本应该释放的吧

@Zepo Zepo closed this as completed Sep 14, 2017
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