         selectedImageScrollView?.userInteractionEnabled = true
     }
     
-    override func shouldAutorotate() -> Bool {
-        return UIDevice.currentDevice().userInterfaceIdiom == .Pad
+    override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
+        return UIInterfaceOrientationMask.Portrait
     }
     
     @IBAction func acceptImageButtonPressed(sender: UIButton) {

        if let selectedImageScrollView = selectedImageScrollView,
           let mainScrollView = mainScrollView {
            let height = selectedImageScrollView.bounds.height
            mainScrollView.setContentOffset(CGPoint(x: mainScrollView.contentOffset.x, y: height * CGFloat(state.rawValue)), animated: true)
            
            switch state {
            case .Image:

class SnapImagePickerViewController: UIViewController {
    @IBOutlet weak var mainScrollView: UIScrollView?
    @IBOutlet weak var selectedImageScrollView: UIScrollView?
    @IBOutlet weak var selectedImageView: UIImageView?
    @IBOutlet weak var albumCollectionView: UICollectionView?
    @IBOutlet weak var albumSelectorView: AlbumSelectorView?

