UIPageViewController not showing dots

ios, uipageviewcontroller

Solution

You can do it using just a `UIPageViewController`, but it will only appear when you set the transition style to `UIPageViewControllerTransitionStyleScroll`

Check out: this SO answer here

Problem

I'm using a UIPageViewController to show two views, but I'm not getting dots at the bottom. Here's the code I'm using: ``` - (UIViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerAfterViewController:(UIViewController *)viewController { if(viewController == oneViewController) { self.navigationController.navigationItem.title=@"Options"; return twoViewController; } else { self.navigationController.navigationItem.title=@"All Schedule"; return oneViewController; } } - (NSInteger)presentationCountForPageViewController:(UIPageViewController *)pageViewController { return 2; } ```

Original source

Related problems