Setting becomeFirstResponder on viewController nested in PageViewController
问题 I have a pageViewController that has two child view controllers that you can swipe between. One of them has a textView that I want to be the first responder when you scroll onto that page, then lose focus when you scroll away. Right now I have this: override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) composeTextView.delegate = self composeTextView.becomeFirstResponder() } The keyboard shows up as soon as you start to scroll onto the view. But as soon as the