IPHONE开发 文本框回车 虚拟键盘消失

来源:互联网 发布:口袋妖怪go坐标软件 编辑:程序博客网 时间:2024/06/05 12:45
- (BOOL)textFieldShouldReturn:(UITextField *)theTextField {        if (theTextField == self.textField) {        [theTextField resignFirstResponder];    }    return YES;}
使用上述代码即可达到目的