 		// Adding duration
 		if duration > 0 {
 			durationTimer?.invalidate()
-			durationTimer = NSTimer.scheduledTimerWithTimeInterval(duration!, target: self, selector: Selector("hideView"), userInfo: nil, repeats: false)
+			durationTimer = NSTimer.scheduledTimerWithTimeInterval(duration!, target: self, selector: #selector(SCLAlertView.hideView), userInfo: nil, repeats: false)
 		}
 
 		// Animate in the alert view

		viewText.textColor = UIColorFromRGB(0x4D4D4D)
		contentView.layer.borderColor = UIColorFromRGB(0xCCCCCC).CGColor
		//Gesture Recognizer for tapping outside the textinput
		let tapGesture = UITapGestureRecognizer(target: self, action: Selector("dismissKeyboard"))
		tapGesture.numberOfTapsRequired = 1
		self.view.addGestureRecognizer(tapGesture)
	}

			}
		}

		let cancelSelector = #selector(SCLAlertView.cancelView)

		if buttonsLayout == .Horizontal {
			if cancelText != nil {
