Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITextView doesn't show InputAccessoryView on first click

I use the UITextViewDelegate and add a InputAccessoryView in textViewDidBeginEditing:

[textView setInputAccessoryView:doneBar];

The doneBar is not nil and it appears on second opening.

Has anyone else this problem?

Thanks in advance.

like image 921
Fabio Poloni Avatar asked Apr 27 '11 11:04

Fabio Poloni


1 Answers

I imagine when the code has reached textViewDidBeginEditing: that it is too late to make changes to the UI. Perhaps you can move your code to an earlier event, maybe textViewShouldBeginEditing:

like image 183
Ken Pespisa Avatar answered Sep 23 '22 16:09

Ken Pespisa