             metrics: ["margin": self.verticalMargin],
             views: ["actionGroupView": self.actionGroupView, "cancelGroupView": self.cancelGroupView])
         )
+    }
+
+    private func setupGroupViewsForAlert() {
+        self.view.addSubview(self.actionGroupView)
+
+        self.actionGroupView.clipsToBounds = true
+        self.actionGroupView.layer.cornerRadius = CGFloat(self.cornerRadius)
+        self.actionGroupView.translatesAutoresizingMaskIntoConstraints = false
+        self.view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|-margin-[groupView]-margin-|",
+            options: .DirectionLeadingToTrailing,
+            metrics: ["margin": self.horizontalMargin],
+            views: ["groupView": self.actionGroupView])
+        )
+
+        self.view.addConstraint(NSLayoutConstraint(item: self.actionGroupView,
+            attribute: .CenterY,
+            relatedBy: .Equal,
+            toItem: self.view,
+            attribute: .CenterY,
+            multiplier: 1,
+            constant: 0))
     }
 
     private func constraintsForViews(views: [UIView]) -> [NSLayoutConstraint] {


        self.titleView!.translatesAutoresizingMaskIntoConstraints = false
        self.actionGroupView.addSubview(self.titleView!)
        self.updateActionContraints()
    }

    func addControlToGroupView(control control: UIControl, isCancelAction: Bool) {
        control.translatesAutoresizingMaskIntoConstraints = false
        if isCancelAction {
            self.cancelGroupView.addSubview(control)
            self.updateCancelContraints()
        } else {
            self.actionGroupView.addSubview(control)
            self.updateActionContraints()
        }
    }

    private func actionControlsWithTitle() -> [UIView] {

    @IBInspectable public var cornerRadius: Int         = 10 {
        didSet { self.updateUI() }
    }

    private let controllerStyle: ControllerStyle

    public private(set) var actions: [AFMAction] = []
    public private(set) var actionControls: [UIControl] = []
