开发者

iPhone Keyboard Next Button

开发者 https://www.devze.com 2023-01-19 01:27 出处:网络
How do I use the next button (the done button) in the bottom left of the keyboard on the iPh开发者_运维百科one? if i understand the question.

How do I use the next button (the done button) in the bottom left of the keyboard on the iPh开发者_运维百科one?


if i understand the question.

Here is solution


Code snippit from link:

- (BOOL)textFieldShouldReturn:(UITextField *)textField {
    if (textField == field1TextField) {
        [textField resignFirstResponder];
        [field2TextField becomeFirstResponder];
    } 
    else if (textField == field2TextField) {
        [textField resignFirstResponder];
        [field3TextField becomeFirstResponder];
    }
    else if (textField == field3TextField) {
        [textField resignFirstResponder];
    }
    return YES;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消