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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -