-
Notifications
You must be signed in to change notification settings - Fork 98
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
viewWillAppear Event #5
Comments
DAPagesContainer's mechanism of adding a child view controller does cause viewWillAppear to not get called on the child view controller. I've investigated the cause of this (iOS 6) and it appears to be in
Whereas according to apple's documentation it should be:
(which incidentally automatically calls When I changed the above line, the |
Thank you for your answer! |
Oh that's by design (with the way DAPagesContainer is currently implemented). All your viewControllers are presented at the same time (inside a UIScrollView), the trick being the non visible ones are outside of the scrollView's visible area. But as far as the UIViewController life cycle, they have "appeared". It isn't a problem is it? For the most part it works. Where it might get tricky is if you are waiting to do something (eg load dynamic content) until the very moment the view controller is slid into view. In such a case DAPagesContainer might not be the most appropriate tool for the job? Not sure... |
Add your child Controllers directly in DAPagesContainer in ViewDidLoad. and dynamic UIViewControllers works. (then you don't need DAViewController anymore) |
Hello,
In first you project is very cool! Nice Job!
I have a question. How can i detect the viewWillAppear method for each ViewController ? I need to catch the event.
Your project is not update for the iOS 7 ?
Thank you.
Regards.
The text was updated successfully, but these errors were encountered: