简体   繁体   English

Interface Builder .xib文件的内部结构是什么?

[英]What is the internal structure of an Interface Builder .xib file?

Interface Builder使用的.xib文件的内部结构是什么?

Right click a xib file > Open As > Source Code 右键单击xib文件>打开方式>源代码

You'll be able to see the entire xib file as code. 您将能够将整个xib文件视为代码。

Well a xib file is an XML file used by Interface Builder. 那么xib文件是Interface Builder使用的XML文件。

The header usually contains something similar to this: 标题通常包含类似于此的内容:

<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">

Then they consist of 'object' entries which represent objects contained within the nib. 然后它们由“对象”条目组成,这些条目表示笔尖中包含的对象。

<object class="NSMutableDictionary" key="IBDocument.PluginVersions">

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

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