UITextView and position of floating autocorrect window

后端 未结 3 1676
野趣味
野趣味 2021-02-19 03:02

I have a UITextView with autocorrection on. The view\'s height is about 30 pix. When autocorrect kicks in the autocorrect view is nearly invisible below the text. Is there a way

相关标签:
3条回答
  • 2021-02-19 03:44

    I discovered that setting the scrollEnabled to false on the UITextView the popup would always appear above the word being corrected.

    0 讨论(0)
  • 2021-02-19 03:50

    After trying various solutions unsuccessfully, I find the best way that worked for me is to simply add your UITextView inside a UIView.

    0 讨论(0)
  • 2021-02-19 03:57

    Did you try to set clipsToBounds=NO for your UITextView? Sounds like it's clipping the autocorrect view to the frame size of your UITextView..or perhaps auto-positioning it inside your frame. Worth a try anyway..

    0 讨论(0)
提交回复
热议问题