Set focus to UITextField in tableCell

前端 未结 1 1917
遇见更好的自我
遇见更好的自我 2021-02-12 07:08

I am creating a table view with UITextFields dynamically.

l_textField = [[UITextField alloc] initWithFrame:TextFieldFrame];
l_textField.tag = cellRo         


        
1条回答
  •  梦如初夏
    2021-02-12 07:52

    change [field resignFirstResponder]; with [field becomeFirstResponder];

    resignFirstResponder is used to remove keyboard (focus) from text field

    0 讨论(0)
提交回复
热议问题