@@ -34,15 +34,15 @@ class ViewController: UIViewController , ValidationDelegate, UITextFieldDelegate
3434 self . view. addGestureRecognizer ( UITapGestureRecognizer ( target: self , action: " hideKeyboard " ) )
3535
3636 validator. styleTransformers ( success: { ( validationRule) -> Void in
37- println ( " here " )
37+ print ( " here " )
3838 // clear error label
3939 validationRule. errorLabel? . hidden = true
4040 validationRule. errorLabel? . text = " "
4141 validationRule. textField. layer. borderColor = UIColor . greenColor ( ) . CGColor
4242 validationRule. textField. layer. borderWidth = 0.5
4343
4444 } , error: { ( validationError) -> Void in
45- println ( " error " )
45+ print ( " error " )
4646 validationError. errorLabel? . hidden = false
4747 validationError. errorLabel? . text = validationError. errorMessage
4848 validationError. textField. layer. borderColor = UIColor . redColor ( ) . CGColor
@@ -57,22 +57,22 @@ class ViewController: UIViewController , ValidationDelegate, UITextFieldDelegate
5757 }
5858
5959 @IBAction func submitTapped( sender: AnyObject ) {
60- println ( " Validating... " )
60+ print ( " Validating... " )
6161 validator. validate ( self )
6262 }
6363
6464 // MARK: ValidationDelegate Methods
6565
6666 func validationSuccessful( ) {
67- println ( " Validation Success! " )
68- var alert = UIAlertController ( title: " Success " , message: " You are validated! " , preferredStyle: UIAlertControllerStyle . Alert)
69- var defaultAction = UIAlertAction ( title: " OK " , style: . Default, handler: nil )
67+ print ( " Validation Success! " )
68+ let alert = UIAlertController ( title: " Success " , message: " You are validated! " , preferredStyle: UIAlertControllerStyle . Alert)
69+ let defaultAction = UIAlertAction ( title: " OK " , style: . Default, handler: nil )
7070 alert. addAction ( defaultAction)
7171 self . presentViewController ( alert, animated: true , completion: nil )
7272
7373 }
7474 func validationFailed( errors: [ UITextField : ValidationError ] ) {
75- println ( " Validation FAILED! " )
75+ print ( " Validation FAILED! " )
7676 }
7777
7878 func hideKeyboard( ) {
0 commit comments