Xcode不会在storyboard中显示我的文本字段占位符文本 [英] Xcode won't show my textfield placeholder text in storyboard

查看:253
本文介绍了Xcode不会在storyboard中显示我的文本字段占位符文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在属性检查器中分配文本字段的占位符值时,它不会显示在故事板中,但是,当我运行应用程序的模拟器时,它就在那里。我缺少一个设置吗?我只是希望能够在编辑器中看到占位符文本。下面是xcode和其中一个模拟器的屏幕截图

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

< a href =https://i.stack.imgur.com/mCwEU.png =noreferrer>

推荐答案

我遇到同样的问题,幸运的是我用Xcode 9.1运行MacBook (9B55)和带有Xcode 9.2的iMac(9C40b)

I am having the same issue, fortunately I run a MacBook with Xcode 9.1(9B55) and an iMac with Xcode 9.2(9C40b)

在我的MacBook上,所有占位符都出现,但在iMac上却没有。
所以问题是xCode 9.2运行High Sierra。

On my MacBook all placeholders show up but on iMac they don't. So the issue is with xCode 9.2 running High Sierra.

这篇关于Xcode不会在storyboard中显示我的文本字段占位符文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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