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

前端 未结 4 2006
情书的邮戳
情书的邮戳 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条回答
  •  -上瘾入骨i
    2020-12-14 15:19

    In swift 4, the following code can be used for replacing the "Return button" on keyboard with "search button" or "done button":

    yourTextField.returnKeyType = UIReturnKeyType.search
    yourTextField.returnKeyType = UIReturnKeyType.done
    

提交回复
热议问题