Do not look at the View page. But you need to create an instance of pageControl and add it to the navigationItem of the current viewController, and not to the navigationController navigationItem.
var pageControl: UIPageControl?
pageControl = UIPageControl()
pageControl?.frame = CGRectZero
pageControl?.currentPage = 0
pageControl?.numberOfPages = 3
pageControl?.tintColor = UIColor.whiteColor()
self.navigationItem.titleView = pageControl?
source
share