Xcode 项目在文档大纲中变灰 [英] Xcode items greyed out in the Document Outline

查看:24
本文介绍了Xcode 项目在文档大纲中变灰的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 iCloud 将我正在处理的 Xcode 项目从笔记本电脑同步"到台式机.不幸的是,它似乎并没有那么好用.我今天在台式机上打开了一个我昨天在笔记本电脑上工作的项目.

I've been using iCloud to 'sync' Xcode projects I'm working on from my laptop to my desktop. 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.

如果我在桌面上打开文件,故事板中的某些按钮和标签会丢失.查看文件 ouline 我可以看到这些,但它们是灰色的(见图).但是,当我构建文件时,它们在模拟器中正常显示.知道为什么或如何让它们正常显示吗?(如果我在笔记本电脑这些没有变灰,看起来都很正常)

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.

已卸载:

已安装:

这篇关于Xcode 项目在文档大纲中变灰的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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