Keyboard Animation Issues When Calling becomeFirstResponder within a Modal View Controller

前端 未结 5 1831
北荒
北荒 2020-12-13 23:11

I\'ve been having some issues with calling -becomeFirstResponder on a UITextField contained with a view controller that is presented modally. I cal

5条回答
  •  轮回少年
    2020-12-13 23:54

    This is what I did to make the keyboard appear to animate exactly the same time as a modalviewcontroller:

    In the (init) method of the view being presented modally, I created the UITextField and made it the first responder. Then when I present the modal view controller with animation they both appear at the same time.

提交回复
热议问题