         
         buttonActions()
     }
-    
-    
     
     override func viewWillLayoutSubviews() {
         super.viewWillLayoutSubviews()

    @IBOutlet weak var centeringView: UIView!
    
    var allowsCropping: Bool = false
    var verticalPadding: CGFloat = 30
    var horizontalPadding: CGFloat = 30
    
    var onComplete: ALCameraViewCompletion?
    
    var asset: PHAsset?
    
    var targetSize: CGSize {
        let scale = UIScreen.mainScreen().scale
        let targetSize = CGSize(width: view.bounds.width * scale, height: view.bounds.height * scale)
        return targetSize
    }
    
    init(asset: PHAsset, allowsCropping: Bool) {
        self.asset = asset
        self.allowsCropping = true
        super.init(nibName: "ALConfirmViewController", bundle: NSBundle(forClass: ALCameraViewController.self))
        commonInit()
    }
    
    internal required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        commonInit()
    }

        if UIScreen.mainScreen().bounds.width <= 320 {
            horizontalPadding = 15
        }
    }
    
    internal override func prefersStatusBarHidden() -> Bool {
