ios - UIPageViewController: setViewControllers(_animated:) skips pages while animating -


when animating uiviewcontroller > 1 index away current vc, setviewcontrollers(_animated:true) skip on vcs in-between.

for example, when animating vc1 vc3, uipageviewcontroller not display vc2 during animation, , appears if vc1 , vc3 adjacent.

pageviewcontroller.setviewcontrollers([viewcontroller], direction: .forward, animated: true, completion: nil) 

one solution had instead add vcs paging-enabled uiscrollview , animate contentoffset view.bounds.width * index when transitioning new vc.

wondering if there's method concerning uipageviewcontroller of better practice.


edit: see twitter's profile segmented control , jump multiple segments @ once see animation i'm referring to.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -