How does one add a done button to a UINavigationbar when the user touches a specific textfield or textview?
Or would a better way be to detect when the keyboard is showing, and then display the button.
I would like the done button to dismiss the keyboard like in standard Notes application.
You could try something similar to this:
and also
with the following customized as you like
then remove the button in
- (void)textFieldDidEndEditing:(UITextField *)textFieldand also in- (void)textViewDidEndEditing:(UITextView *)textViewJust remember to set up the delegates!