Pretty much all of
life is hit the go button
and see what happens.
—Red Leaf Haiku by © John Clark Helzer
seen from Yemen

seen from Malaysia

seen from United States
seen from United States

seen from Chile

seen from United States

seen from Belgium
seen from United States
seen from Italy
seen from United Kingdom
seen from United Kingdom

seen from Canada

seen from Malaysia
seen from Ukraine
seen from China
seen from Türkiye
seen from Türkiye
seen from Italy
seen from T1
seen from United Kingdom
Pretty much all of
life is hit the go button
and see what happens.
—Red Leaf Haiku by © John Clark Helzer
Better living thru MIDI
Self
Implementing the Next button On Keyboard When Typing in UITextField
Here's how I implemented using the Next button on the iPhone's keyboard when typing on UITextFields i.e. when logging in your username and password on an app.
First, I set my textfields' delegate to self in IB by linking the delegate to File's Owner. Then I used the code below to set tags on my textfields:
usernameTxtFld.tag = 1;
passwordTxtFld.tag = 2;
Then , I implemented the code below for assigning the methods:
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
if (textField.tag == 1)
{
[usernameTxtFld resignFirstResponder];
[passwordTxtFld becomeFirstResponder];
}
else if (textField.tag == 2)
{
[passwordTxtFld resignFirstResponder];
NSLog(@"Go button pressed");
[self loginBtnPressed];
}
return YES;
}
My loginBtnPressed method is an IBAction that should login the user. This is the method that the Go button will do when pressed.