From d0a37ac963e07d9a7acfd222877a76ce3e5a74f5 Mon Sep 17 00:00:00 2001 From: Chucky Date: Fri, 14 Oct 2016 16:48:20 -0700 Subject: [PATCH] update selector syntax --- CurrencyTextField/CurrencyTextField.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CurrencyTextField/CurrencyTextField.swift b/CurrencyTextField/CurrencyTextField.swift index fac0138..34b2734 100644 --- a/CurrencyTextField/CurrencyTextField.swift +++ b/CurrencyTextField/CurrencyTextField.swift @@ -43,7 +43,7 @@ import UIKit override public func willMoveToSuperview(newSuperview: UIView!) { if newSuperview != nil { - NSNotificationCenter.defaultCenter().addObserver(self, selector: "textDidChange:", name:UITextFieldTextDidChangeNotification, object: self) + NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(UITextInputDelegate.textDidChange(_:)), name:UITextFieldTextDidChangeNotification, object: self) } else { NSNotificationCenter.defaultCenter().removeObserver(self) }