When set UITextField as FirstResponder programmatically, cause some weird actions on text editing
问题 I have a UITextField with custom keyboard, basically like a calculator. I would like my keyboard show up by default, so i used [self.topInputTextField becomeFirstResponder]; in viewDidLoad , I think that's very common usage. However, it causes some very weird actions on my textfield. When i set my textfield as the first responder in viewDidLoad, and every time after i done editing, the text will jump, and when i click another text field and and click the first text field again, the texts in