Menu

PageViewController transition

Kaarigar
2013-10-16
2013-10-16
  • Kaarigar

    Kaarigar - 2013-10-16

    My app has a PageViewController that controls three pages. When the page transitions programmatically from page 1 to 2 or 2 to 3, it transitions from right to left, as expected. But when it transitions from 3 to 1, at that time too it transitions from right to left. But I expect that it should transition from left to right because the page 1 is before page 3. Is it possible to accomplish this? Should I use some other control? Thanks!

     
  • Kaarigar

    Kaarigar - 2013-10-16

    I see following code that is commented out in TDPFUIPageViewController.SetActivePageIndex:

    if value > FActivePageIndex then
    Dir := Integer( UIPageViewControllerNavigationDirectionForward )
    else
    Dir := Integer( UIPageViewControllerNavigationDirectionReverse );

    It gives me expected behavior if I uncomment it - can you please confirm if that's the right way of doing it?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.