How do I programmatically set the Return Key for a particular UITextField?

前端 未结 4 2010
情书的邮戳
情书的邮戳 2020-12-14 14:46

I can\'t believe that this question hasn\'t been asked yet, but I have been unable to find it so that is my assumption.

I have created custom UITableViewCel

4条回答
  •  悲&欢浪女
    2020-12-14 15:34

    you have to invoke [textView reloadInputViews]; after setting the return key type to update the keyboard return key appearance immediately.

    DO IT AS FLLOW:

    textView.returnKeyType = UIReturnKeyDone; [textView reloadInputViews];

提交回复
热议问题