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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
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?