 			}
 		}
 
-		let cancelSelector = Selector("cancelView")
+		let cancelSelector = #selector(SCLAlertView.cancelView)
 
 		if buttonsLayout == .Horizontal {
 			if cancelText != nil {

		// Adding duration
		if duration > 0 {
			durationTimer?.invalidate()
			durationTimer = NSTimer.scheduledTimerWithTimeInterval(duration!, target: self, selector: Selector("hideView"), userInfo: nil, repeats: false)
		}

		// Animate in the alert view

		}
		// Done button
		if completeText != nil {
			addButton(completeText!, target:self, selector:#selector(SCLAlertView.hideView))
		}

		if buttonsLayout == .Vertical {
