UITextView和浮动自动更正窗口的位置 [英] UITextView and position of floating autocorrect window

查看:142
本文介绍了UITextView和浮动自动更正窗口的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带自动更正的UITextView。视图的高度约为30像素。当自动更正视图中的自动更正踢时在文本下方几乎不可见。有没有办法控制小自动更正窗口的位置或确保它是顶层,因此它始终可见,用户可以轻松查看并与之交互?

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 to control the position of the small autocorrect window or insure it is the top layer so it is always visible and the user can easily see and interact with it?

推荐答案

我发现在UITextView上将scrollEnabled设置为false,弹出窗口将始终显示在要更正的单词上方。

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

这篇关于UITextView和浮动自动更正窗口的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆