What is the internal structure of an Interface Bui

2019-07-04 23:59发布

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

2条回答
戒情不戒烟
2楼-- · 2019-07-05 00:21

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">
查看更多
戒情不戒烟
3楼-- · 2019-07-05 00:27

Right click a xib file > Open As > Source Code

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

查看更多
登录 后发表回答