 		} else {
 			self.navigationItem.rightBarButtonItem = shareAction
 		}
+	}
+
+	override func viewDidAppear(animated: Bool) {
+		super.viewDidAppear(animated)
+		updatePageControlVisibility()
 	}
 
 	private func vend(index:Int)->ManagedIndexedViewViewController {

	func pageViewController(pageViewController: UIPageViewController, didFinishAnimating finished: Bool, previousViewControllers: [AnyObject], transitionCompleted completed: Bool) {
		let pageVc = pageViewController.viewControllers.first as! ManagedIndexedViewViewController
		currentIndex = pageVc.index
	}

	// MARK: - CoreData

		}
	}

	// MARK: - Private

	private func updatePageControlVisibility() {
		if let pageControl = self.pageControl {
			if !shouldShowPageControl{
				if !pageControl.hidden {
					UIView.animateWithDuration(0.2, animations: {
						pageControl.alpha = 0
						}, completion: { completed in
							pageControl.hidden = true
					})
				}
			} else if pageControl.hidden {
				pageControl.alpha = 0
				pageControl.hidden = false
				UIView.animateWithDuration(0.2) {
					pageControl.alpha = 1
				}
			}
		}
		updateTitle()
	}

	private var shouldShowPageControl:Bool {
		return count <= MaxPageCountToSeePageControl
	}

	private func updateTitle() {
		if shouldShowPageControl {
			title = baseTitle
		} else {
			title = baseTitle + " \(currentIndex+1) of \(count)"
		}
	}

}
