Xcode 不会在故事板中显示我的文本字段占位符文本
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/47719530/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode won't show my textfield placeholder text in storyboard
提问by Chris Gambrell
When I assign my textfield's placeholder value in the attributes inspector, it won't show in the storyboard, however, when I run a simulator of the application is is there. Is there a setting I'm missing? I just want to be able to see the placeholder text in the editor. Below is a screenshot of xcode and one of the simulator
当我在属性检查器中分配我的文本字段的占位符值时,它不会显示在故事板中,但是,当我运行应用程序的模拟器时,它就在那里。有没有我遗漏的设置?我只想能够在编辑器中看到占位符文本。下面是xcode和模拟器之一的截图
回答by Drewgost
I am having the same issue, fortunately I run a MacBook with Xcode 9.1(9B55) and an iMac with Xcode 9.2(9C40b)
我遇到了同样的问题,幸运的是我使用 Xcode 9.1(9B55) 运行 MacBook 和使用 Xcode 9.2(9C40b) 的 iMac
On my MacBook all placeholders show up but on iMac they don't. So the issue is with xCode 9.2 running High Sierra.
在我的 MacBook 上,所有占位符都会出现,但在 iMac 上却没有。所以问题在于运行 High Sierra 的 xCode 9.2。