我的观点包含:
first name ( UITextField )
last name ( UITextField )
email ( UITextField )
note ( UITextView )
图片如下
以下代码用于处理输入返回键时
- (BOOL)textFieldShouldReturn:(UITextField *)textField { // invoked when user hits return of keyboard from a text field
if ( textField == self.firstName)
[self.lastName becomeFirstResponder];
else if (textField == self.lastName)
[self.email becomeFirstResponder];
else if (textField == self.email) {
[self.note becomeFirstResponder];
}
return YES;
}
当我在email
场地并击球next
时,我降落在note
第二行,如下所示(浅蓝色光标位于第二行)
我不明白。光标是否应该在note
.
关于这个问题的任何想法?