Post

Replies

Boosts

Views

Activity

UIPageViewController: handling odd number of pages with spine location set to mid
When I use UIPageViewController with the Spine Location set to Mid and Double Sided and landscape screen orientation, whenever I have an odd number of pages and get to the last page I get the following error:'The number of view controllers provided (1) doesn't match the number required (2) for the requested transition'If I have an even number of pages, it works just fine. How do I handle this error, should I pass an empty page (viewcontroller) when at the end of all pages, and if so, how, or can I handle it in some other more stratightforward way?
2
1
2.4k
Jul ’16