stefanceriu / SCPageViewController

Just like UIPageViewController but better.. :)
MIT License
352 stars 70 forks source link

viewWillAppear & viewDidAppear events are not getting propagated to the active page's viewcontroller #7

Closed almostintuitive closed 9 years ago

almostintuitive commented 9 years ago

This is useful if someone is presenting a modal on a pageviewcontroller, and if that's dismissed, the original ViewController's viewWillAppear and viewDidAppear function should be called.

At least that's the expected behavor, SCPageViewController currently not forwarding these events.

stefanceriu commented 9 years ago

The tilePages method (called from viewWillAppear and viewDidDisappear) should call the updateFramesAndTriggerAppearanceCallbacks method and correctly forward the events to the child view controllers. Either way, I'm going to have a look at it asap and fix it if needed.

almostintuitive commented 9 years ago

thank you, I'll try to reproduce it in a standalone project and send it to you later today!

stefanceriu commented 9 years ago

I did a couple of tests just now and everything seems to be working as intended, did you manage to reproduce anything on your side ?