     
     // showTitle(view, title, subTitle, duration, style)
     func showTitle(vc:UIViewController, title: String, subTitle: String, duration: NSTimeInterval?, completeText: String?, style: SCLAlertViewStyle) -> SCLAlertViewResponder {
-        alpha = 0
+        view.alpha = 0
         rootViewController = vc
 		// Add subviews
+		rootViewController.addChildViewController(self)
         rootViewController.view.addSubview(shadowView)
-        rootViewController.view.addSubview(self)
+        rootViewController.view.addSubview(view)
 		// Autolayout constraints for shadow view (to handle device rotation)
 		let c1 = NSLayoutConstraint(item:shadowView, attribute:NSLayoutAttribute.Width, relatedBy: NSLayoutRelation.Equal, toItem:vc.view, attribute:NSLayoutAttribute.Width, multiplier: 1.0, constant:0.0)
         vc.view.addConstraint(c1)

    
    required override init() {
		super.init()
//		setTranslatesAutoresizingMaskIntoConstraints(false)
		// Add Subvies
		addSubview(contentView)
		addSubview(circleViewBackground)
		addSubview(circleView)
		circleView.addSubview(circleIconImageView)
		contentView.addSubview(labelTitle)
		contentView.addSubview(viewText)

}

// The Main Class
class SCLAlertView: UIViewController {
    let kDefaultShadowOpacity: CGFloat = 0.7
    let kCircleHeight: CGFloat = 56.0
    let kCircleTopPosition: CGFloat = -12.0
