开发者

UITextView doesn't show InputAccessoryView on first click

开发者 https://www.devze.com 2023-03-01 13:36 出处:网络
I use the UI开发者_运维知识库TextViewDelegate and add a InputAccessoryView in textViewDidBeginEditing:

I use the UI开发者_运维知识库TextViewDelegate 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.


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:

0

精彩评论

暂无评论...
验证码 换一张
取 消