Xcode不可见元素 [英] Xcode invisible elements

查看:49
本文介绍了Xcode不可见元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道发生了什么.按钮或分段控件之类的元素项在主故事板上不可见.手机是一样的.

I don't know what happened. Elements items like buttons or segmented control are invisible in main storyboard. Cellphone is the same.

我的意思是我的形象

推荐答案

您似乎不小心将视图(或窗口)的色调颜色"更改为白色.(或者您甚至可以将其设置为清除颜色",或者完全不显示颜色.)

It looks like you accidentally changed the view's (or window's) Tint Color to white. (Or you could even have turned it to Clear color, or no color at all.)

这将导致按钮或分段控件的文本不可见,因为它是白色的.分段控件有一个边框,但它也会变成白色.因此您将看不到任何东西.

This would cause the text of the button or segmented control to be invisible, because it is white on white. The segmented control has a border but it would turn white too. So you wouldn't be able to see anything.

有两个地方可以解决此问题.在属性"检查器中查看视图控制器的视图"的色调"弹出窗口.

There are two places to look to fix this. Look at the Tint popup of your view controller's View in the Attributes inspector.

还要查看整个故事板的文件"检查器中的全局色调"弹出窗口.

Also look at the Global Tint popup in the File inspector for the whole storyboard.

[ EDIT (原来是全球色彩).

[EDIT It turned out to be the Global Tint.]

这篇关于Xcode不可见元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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