Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIPageViewController not showing dots [closed]

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;
}
like image 324
lokesh sagiraju Avatar asked Jan 12 '23 16:01

lokesh sagiraju


1 Answers

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

like image 70
user1459524 Avatar answered Jan 21 '23 18:01

user1459524