How do I use the next button (the done button) in the bottom left of the keyboard on the iPhone?
Asked
Active
Viewed 3,990 times
1 Answers
5
if i understand the question.
Here is solution
Code snippit from link:
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
if (textField == field1TextField) {
[textField resignFirstResponder];
[field2TextField becomeFirstResponder];
}
else if (textField == field2TextField) {
[textField resignFirstResponder];
[field3TextField becomeFirstResponder];
}
else if (textField == field3TextField) {
[textField resignFirstResponder];
}
return YES;
}

Christian Stewart
- 15,217
- 20
- 82
- 139

Aaron Saunders
- 33,180
- 5
- 60
- 80
-
2To those who sees this, remember that the -(BOOL) method is used when you create the UITextField programatically. If you have created the TextField from the Library, you would want to create an `-(IBAction)` for the TextFields. When linking the actions to the respective TextField, choose `Did End On Exit` and everything else just copy from the website. – Melvin Lai Sep 21 '11 at 05:05