I added page control from storyboard and don’t know how to connect it to code to make it work. Now when I change pages it doesn’t change dots. I have to use my page control in the middle of the screen. Are there any special functions?
These ones just add standard page control at the bottom of the page.
func presentationCount(for pageViewController: UIPageViewController) -> Int {
orderedViewControllers.count
}
func presentationIndex(for pageViewController: UIPageViewController) -> Int {
return 0
}
CodePudding user response:
use bellow: How to use page control