I have a UItableView
with custom UItableViewCell
. Each cell have UItextField
in it. Now i want user to be able to move to next textfield by hitting next button on keyboard.
I already know that we can do following in cellForRowAtIndexPath
cell.textField.tag = indexPath.row
And then for moving to next field
if let nextField = self.view.viewWithTag(textField.tag + 1) as? UITextView {
nextField.becomeFirstResponder()
} else {
textField.resignFirstResponder()
}
But in my case we i have multiple sections inside UItableview so this
cell.textField.tag = indexPath.row
won't work. Any leads? Thanks in advance.