xcode Interface Builder - 文档在哪里

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43368110/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 09:54:36  来源:igfitidea点击:

Interface Builder - where is the documentation

xcodeinterface-builder

提问by Chris G.

I have many times looked for XCode documentation for things like (1.) icons in the editor intellisense. My latest documentation problem is in Interface Builder:

我曾多次在编辑器智能感知中寻找诸如 (1.) 图标之类的 XCode 文档。我最新的文档问题是在 Interface Builder 中:

When you have a .xib file. Then you have "Placeholders" for "File's Owner" and the UIView itself - (2.) Where should I set "custom class" & (3.) what is "Inherited From Target"

当您有 .xib 文件时。然后你有“文件所有者”的“占位符”和 UIView 本身 ​​- (2.) 我应该在哪里设置“自定义类” & (3.) 什么是“从目标继承”

Can you help me help finding informations for XCode UI/IB documentations?

你能帮我找到 XCode UI/IB 文档的信息吗?

回答by DaddyCat941114

I can help on the "Inherited from Target" option of Custom Class.

我可以帮助自定义类的“从目标继承”选项。

My project has a variety of targets (free, paid, home free, home paid) and I have a class that is only used in the home variants.

我的项目有多种目标(免费、付费、家庭免费、家庭付费),我有一个仅用于家庭变体的类。

When I just added my class and let it default to Module I kept getting an error at run time that the class was not defined in the storyboard.

当我刚刚添加我的类并让它默认为 Module 时,我在运行时不断收到一个错误,即该类未在故事板中定义。

By checking the "Inherited from Target" option the module gets compiled in for the targets I use it in (Target Memberships for swift file and everything works.

通过选中“从目标继承”选项,模块被编译为我在其中使用的目标(Swift 文件的目标成员身份,一切正常。

I am assuming this was an optimization so the module would not be included when not needed - but that is just a guess.

我假设这是一种优化,因此在不需要时不会包含该模块 - 但这只是一个猜测。

Needless to say this wasted an entire day to figure out - hope it helps some others.

不用说,这浪费了一整天的时间来弄清楚 - 希望它可以帮助其他人。