Gustavo Isidio Gustavo Isidio - 4 months ago 8
Swift Question

How to jump to the next flield when "return" is taped in swift?

How i configure cursor to jump to the next field (description) when i tap "return" on keyboard in swift?

when I finish to choose the name on field and tap "return" on keyboard

the cursor automatically jump to the "description" field... How i can do this?

app screen

I tried resolve this problem with this answer but unsuccessful (link:Using "Next" as a Return Key)

Answer

You can respond to changes in the UITextFields or UILabels by setting up outlets to the textfield actions didEndOnExit. Then in your implementation of that action outlet you can make your other UITextField active with

textField.becomeFirstResponder()
Comments