TextField delegate shouldChangeCharactersInRange
问题 Why doesn't the shouldChangeCharactersInRange update the textfield right away. It is 1 delayed by one character. For example, download this file: https://www.dropbox.com/s/goljs3d6lcxutxy/UITextField%20Tutorial.zip?dl=0 add the following code to func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool { method print(textField.text) see how it is delayed by one character. I want it to be updated as I type the text not one