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

seen from Singapore

seen from Brazil

seen from France
seen from Russia

seen from United States

seen from United Kingdom
seen from China
seen from China
seen from China
seen from United States

seen from Australia
seen from United Kingdom

seen from United Kingdom
seen from China
seen from China
seen from Türkiye
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.