-
Notifications
You must be signed in to change notification settings - Fork 32
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
drawerController is null in viewWillDisappear and viewDidDisappear #21
Comments
The situation is not reproduced. Can you tell me what circumstances? |
This issue can be observed when UINavigationController is located inside DrawerController, I have controllers A and B in navigation stack and I press back button in B. ViewWillDisappear and ViewDidDisappear of B will be called, but in both of them drawerController property is equal to nil. If necessary, I'll prepare sample project. |
UPD. Sorry, in this case the problem doesn't reproduce. I'll prepare another sample sample. |
If that's what I understand:
Since A and B are not managed directly by DrawerController, However, the |
But in other lifecycle methods drawerController is not |
What is "other lifecycle"? |
for example, |
I extended the range of drawerController property. #25 |
Please see controller InnerContentController1 in this sample. drawerController is not nil in viewWillDisappear but it is nil in viewDidDisappear. |
You should press button "GO", then button "Button", then press back button in navigation controller to reproduce. |
I have tested the code. |
OK, maybe it's the feature, not bug :) Please update package in Cocoapods. |
Extension property drawerController of UIViewController returns nil when I'm trying to access it in viewWillDisappear and viewDidDisappear methods of my view controller. Could you please explain this behaviour if it's correct or fix it if there is some bug?
The text was updated successfully, but these errors were encountered: