     
     // 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)

}

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

        contentView.layer.borderColor = UIColorFromRGB(0xCCCCCC).CGColor
    }
	
	override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) {
		super.init(nibName:nibNameOrNil, bundle:nibBundleOrNil)
	}
	
	override func viewDidLayoutSubviews() {
		println("Layout Subviews Called")
		super.viewWillLayoutSubviews()
		let sz = UIScreen.mainScreen().bounds.size
		// Set frames
		var r:CGRect
		if view.superview != nil {
			// View is showing, position at center of screen
			r = CGRect(x:(sz.width-kWindowWidth)/2, y:(sz.height-kWindowHeight)/2, width: kWindowWidth, height: kWindowHeight)
		} else {
			// View is not visible, position outside screen bounds
			r = CGRect(x:(sz.width-kWindowWidth)/2, y:-kWindowHeight, width: kWindowWidth, height: kWindowHeight)
		}
		view.frame = r
		contentView.frame = CGRect(x: 0, y: kCircleHeight / 4, width: kWindowWidth, height: kWindowHeight)
		circleViewBackground.frame = CGRect(x: kWindowWidth / 2 - kCircleHeightBackground / 2, y: kCircleBackgroundTopPosition, width: kCircleHeightBackground, height: kCircleHeightBackground)
		circleViewBackground.layer.cornerRadius = circleViewBackground.frame.size.height / 2
