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

ViewWillAppear is not called in the parent view after dismiss #36

Open
Piero87 opened this issue Jan 10, 2015 · 1 comment
Open

ViewWillAppear is not called in the parent view after dismiss #36

Piero87 opened this issue Jan 10, 2015 · 1 comment

Comments

@Piero87
Copy link

Piero87 commented Jan 10, 2015

Hi, this is a great library, i have notice that the viewWillAppear method is not called in the parent view (the one that present the view) when the MaryPoppin view is dismissed, it's normal? how i can load information that i load in the parent view when viewWillAppear is called to refresh it?

@sparga
Copy link
Collaborator

sparga commented Jan 12, 2015

Thank you. Yes, it is normal because the library uses UIViewController containment to present the popin view, so the parent view never really disappear.
However, you can extract your data loading code in viewWillAppear in a public method that you can use both in viewWillAppear (for the normal use case) and in the popin completion block (you have a reference to the parent view).
Does that answer your question ?

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