UIPageViewController setViewControllers, UIPageControl not showing right current number

后端 未结 1 1763
盖世英雄少女心
盖世英雄少女心 2020-12-11 17:20

I\'am using a UIPageViewController with horizontal scrolling... as long as the user scrolls, the UIPageControl works correctly, problem occurs when jumping programmatically

相关标签:
1条回答
  • 2020-12-11 18:02

    ok, turned out that i misunderstood one delegate method

    - (NSInteger)presentationIndexForPageViewController:(UIPageViewController *)pageViewController {
        return [(IntroPageViewController *)[pageViewController.viewControllers firstObject] index];
    }
    
    0 讨论(0)
提交回复
热议问题