I have a simple scene (using storyboard in IB) with a Username and Password text box. I\'ve set the keyboard to close when you are on the Password text field but can\'t get
Here's what you would put:
- (BOOL)textFieldShouldReturn:(UITextField *)theTextField { if (theTextField == self.textPassword) { [theTextField resignFirstResponder]; } else if (theTextField == self.usernameField) { [self.textPassword becomeFirstResponder]; } return YES; }