Setting a UITextField into editing mode programmatically

后端 未结 3 1982
囚心锁ツ
囚心锁ツ 2021-02-06 22:07

I have a UITextField that I want to set into editing mode (keyboard on screen and cursor in text field box) programatically. I know that the user will be in editin

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-06 22:41

    Call becomeFirstResponder on the UITextField.

    Related question: How do I show the keyboard by default in UITextView?

提交回复
热议问题