简体   繁体   English

Xcode项目在文档大纲中显示为灰色

[英]Xcode items greyed out in the Document Outline

I've been using iCloud to 'sync' Xcode projects I'm working on from my laptop to my desktop. 我一直在使用iCloud来“同步”我正在从我的笔记本电脑到桌面的Xcode项目。 It doesn't seem to work that well unfortunately. 不幸的是,它似乎没有那么好用。 I opened up a project today on the desktop that I worked on the laptop yesterday. 我今天在桌面上打开了一个项目,我昨天在笔记本电脑上工作。

If I open the file on the desktop certain buttons and labels in the storyboard are missing. 如果我在桌面上打开文件,则会丢失故事板中的某些按钮和标签。 Looking at the document ouline I can see these but they are greyed out (see pic). 看看文档我可以看到这些但是它们是灰色的(见图)。 However when I when I build the file, they appear as normal in the simulator. 但是,当我构建文件时,它们在模拟器中显示为正常。 Any idea why or how to get them showing up normally? 知道为什么或如何让它们正常出现? 在此输入图像描述 (If I open this up on the laptop these aren't greyed out and all looks normal) (如果我在笔记本电脑上打开它们,这些都不是灰色的,看起来都很正常)

Items in the Document Outline become greyed out when they are not installed for the size class that you have selected at the bottom center of the storyboard view. 如果没有为故事板视图底部中心选择的大小类安装文档大纲中的项目,则这些项目将变为灰色。

大小类选择器

You can see if the item is installed by selecting the item in the Document Outline and opening up the Attributes inspector. 通过选择“文档大纲”中的项目并打开“属性”检查器,可以查看是否已安装该项目。

Uninstalled: 卸载:

在此输入图像描述在此输入图像描述

Installed: 安装:

在此输入图像描述在此输入图像描述

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

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