 		}
 	}
 
+	// 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)"
+		}
+	}
+
 }


	override func awakeFromNib() {
		super.awakeFromNib()
		title = "Showcase"
	}

	override func viewDidLoad() {

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

	// MARK: - CoreData
