UITextView doesn't show InputAccessoryView on first click

前端 未结 1 1896
清歌不尽
清歌不尽 2021-02-05 08:22

I use the UITextViewDelegate and add a InputAccessoryView in textViewDidBeginEditing:

[textView setInputAccessoryView:done         


        
相关标签:
1条回答
  • 2021-02-05 08:50

    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 讨论(0)
提交回复
热议问题