             let viewController = controllers[viewControllerIndex]
             let view = viewController.view
             
-            view.setTranslatesAutoresizingMaskIntoConstraints(false)
+            view.translatesAutoresizingMaskIntoConstraints = false
             view.removeHeightWidthConstraints()
             scrollView.addSubview(view)
             
             let viewsDictionary = ["view": view]
             
             //  define height and width
-            view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("V:[view(h)]", options:nil, metrics: metrics, views: viewsDictionary))
-            view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:[view(w)]", options:nil, metrics: metrics, views: viewsDictionary))
+            view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("V:[view(h)]", options: [], metrics: metrics, views: viewsDictionary))
+            view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:[view(w)]", options: [], metrics: metrics, views: viewsDictionary))
             
             //  define scroll view content size vertically
-            scrollView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("V:|[view]|", options:nil, metrics: nil, views: viewsDictionary))
+            scrollView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("V:|[view]|", options: [], metrics: nil, views: viewsDictionary))
             
             //  position first view at beginning of scroll view
             if viewControllerIndex == 0 {
-                scrollView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|[view]", options:nil, metrics: nil, views: viewsDictionary))
+                scrollView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|[view]", options: [], metrics: nil, views: viewsDictionary))
             } else {
                 //  position subsequent views after the previous view
                 let previousViewController = controllers[viewControllerIndex - 1]
                 let previousView = previousViewController.view
                 
-                scrollView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:[previousView][view]", options:nil, metrics: nil, views: ["previousView": previousView, "view": view]))
+                scrollView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:[previousView][view]", options: [], metrics: nil, views: ["previousView": previousView, "view": view]))
                 
                 //  if we added the 'final constraints' before, we remove them
-                if let finalConstraints = lastViewConstraint {
-                    scrollView.removeConstraints(finalConstraints as [AnyObject])
+                if let finalConstraints = lastViewConstraints {
+                    scrollView.removeConstraints(finalConstraints)
                 }
                 
-                lastViewConstraint = NSLayoutConstraint.constraintsWithVisualFormat("H:[view]|", options: nil, metrics: nil, views: viewsDictionary)
-                scrollView.addConstraints(lastViewConstraint! as [AnyObject])
+                lastViewConstraints = NSLayoutConstraint.constraintsWithVisualFormat("H:[view]|", options: [], metrics: nil, views: viewsDictionary)
+                scrollView.addConstraints(lastViewConstraints!)
             }
         }
         

    let scrollView: UIScrollView = {
        let scrollView = UIScrollView()
        
        scrollView.setTranslatesAutoresizingMaskIntoConstraints(false)
        scrollView.showsHorizontalScrollIndicator = false
        scrollView.showsVerticalScrollIndicator = false
        scrollView.pagingEnabled = true

        view.insertSubview(scrollView, atIndex: 0)
        
        //  set up the scroll view to cover the entirety of the main view
        view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("V:|[scrollView]|", options: [], metrics: nil, views: ["scrollView": scrollView]))
        view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|[scrollView]|", options: [], metrics: nil, views: ["scrollView": scrollView]))
    }
    
    override func viewWillAppear(animated: Bool) {
