UIPageViewController has Alzheimer
Since iOS 6, UIPageViewController
has a bug in swipe mode that show the wrong page after setting programmaticaly new view controllers in it and swiping back.
You can clearly see it in the video linked here.
An effective solution is described here so I decided to subclass UIPageViewController
to fix the problem in my apps.
I posted my implementation with that fix in a gist to share it with you.
Probably the cleanest solution is implement UIPageViewController
from scratch (at least for the swipe mode) but for now this works.
If you found any custom implementation of it (without bugs), please let me know!
Alessandro