You could use the tag property of your text fields. Number them from 1 to number-of-rows. Then use the following function to advance to the next field. You’ll need to deal with the last field - perhaps wrapping around to the 1st field? I’m not at my Mac, so the syntax may be little off, but it should give you an idea.
func textFieldShouldReturn(textField: UITextField) -> Bool {
let tag = textField.tag + 1
self.viewWithTag(tag).becomeFirstResponder()
return true
}
Thanks for that tip, I guess the down side of numbering them will be if a new field is added or rearranged that the tag properties will need to be done manually again in the story board. Or is there a way to set the tag property in code as well?