tvOS UITextField 编辑后为空白 [英] tvOS UITextField blank after editing

查看:21
本文介绍了tvOS UITextField 编辑后为空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 tvOS 中编辑 UITextField 会显示一个新视图,用户可以在其中输入文本,当文本输入完成后,用户将返回到之前的视图.但是,我发现当我从文本编辑器返回时,我编辑的文本没有显示在我的文本字段中.怎么回事?

Editing UITextField in tvOS shows a new view where the user can enter in text, and when text entry is done, the user is returned to the previous view. However, I have found that when I return from the text editor, the text I edit does not show up in my text fields. What's going on?

tvOS 9.1 版

推荐答案

它不工作的原因是 UITextField 使用了非默认背景色.显然,在 tvOS 中,背景颜色在文本渲染之后渲染到图层(有趣的是,这不会影响占位符文本).这也发生在界面构建器中.错误报告已发送给 Apple.

The reason why it isn't working is because the UITextField is using a non-default background color. Apparently in tvOS, the background color is rendered to the layer after the text has been rendered (Interestingly enough, this does not affect placeholder text). This also happens in interface builder. A bug report has been sent to Apple.

这篇关于tvOS UITextField 编辑后为空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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