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;
}
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With