如何更改 iPhone 中键盘单词补全视图的框架?
有谁知道如何更改单词完成视图的框架?
当您在文本视图中键入某些字符时,会出现该视图。但它总是出现在您键入的字符的底部。
我发现iPhone消息和Skype已将其置于textView的顶部,他们是如何做到的?我应该自己定义键盘还是只实现一些委托方法?
Does anyone know how to change the word completion view's frame ?
The view appears when you type in some characters in a text view. but it always appears on the bottom of the character you type.
I found that iPhone message and Skype has put it to the top of the textView, how did they do that? should I define the keyboard myself or just implements some delegate methods?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据我的观察,如果自动更正建议距离屏幕键盘足够近,则自动更正建议会自动定位在正在键入文本的行上方,这样将建议放在下方会导致键盘遮盖它。
我最好的猜测是,这是由系统确定和处理的,并且没有任何 API 来控制建议出现的位置、如何设置其样式等。
From what I observe, the autocorrect suggestion is automatically positioned above the line where text is being typed if it is close enough to the on-screen keyboard, such that placing the suggestion below would cause the keyboard to obscure it.
My best guess is that this is determined and handled by the system and that there aren't any APIs to control where the suggestion appears, how to style it, etc.