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

余生长醉 提交于 2020-01-04 01:29:35

问题


What is the internal structure of a .xib file used by Interface Builder?


回答1:


Well a xib file is an XML file used by Interface Builder.

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">



回答2:


Right click a xib file > Open As > Source Code

You'll be able to see the entire xib file as code.



来源:https://stackoverflow.com/questions/3322804/what-is-the-internal-structure-of-an-interface-builder-xib-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!