UITextFieldDelegate
键盘return事件
- (BOOL)textFieldShouldReturn:(UITextField *)textField { if (textField.tag == 1){ // do next // 光标 [self.passwordField becomeFirstResponder]; }else if (textField.tag == 2){ // do join [self login:nil]; } return YES; }
时间: 2024-11-05 17:25:48