On a UITextView to hide the keyboard, there is the method:
...
textfield.returnKeyType = UIReturnKeyDone;
textfield.delegate = self;
....
-(BOOL)textFieldShouldReturn:(UITextField *)textField {
[textField resignFirstResponder];
return YES;
}
but if I want to leave the button "done" to the "return" and add a button to hide the keyboard, how do I?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…