1.创建对像文本输入框UITextField *textField = [[UITextField alloc]initWithFrame:CGRextMake];2.设置键盘按钮类型[textField setReturnKeyType:UIReturnKeyDone];3.设置输入框的Delegeatetextfield.delegate = self;4.实现Delegate方法- (void)textFiel