I have four pages in a UIPageViewController, and I\'d like to hide the dots on the last page. I successfully made a function that gets called on the last page of the UIPageV
override func presentationCountForPageViewController(pageViewController: UIPageViewController) -> Int {
if /*current index is the last one*/ {
return 0
} else {
/*return number of pages*/
}
}