UITextField losing firstResponder after view appears
问题 I have a UIPageViewController . One page has a single button, and the other page has a UITextField with a button. When the page scrolls to the view with the field, I'd like it to becomeFirstResponder and open the keyboard. Here's what happens: I call [self.locationQuery becomeFirstResponder] ViewController's viewDidAppear method. But it never opens the keyboard. I do the same in viewWillAppear , and it appears briefly, but then is quickly dismissed. If I'm on the page with the text field, and