简体   繁体   English

Xcode不会在storyboard中显示我的文本字段占位符文本

[英]Xcode won't show my textfield placeholder text in storyboard

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和其中一个模拟器的截图

Xcode中

在此输入图像描述

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)和带Xcode 9.2的iMac(9C40b)运行MacBook

On my MacBook all placeholders show up but on iMac they don't. 在我的MacBook上,所有占位符都出现了,但在iMac上却没有。 So the issue is with xCode 9.2 running High Sierra. 所以问题在于xCode 9.2运行High Sierra。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM