1

当我们看到xib文件的源码时,里面有一些键值和关键字。任何人都知道这些关键字的含义以及我们如何知道我们在哪个地方使用哪个关键字。我知道里面发生的逻辑,但没有足够的关键字知识(在 xib 源代码中使用)。如果有任何教程或文档可用,请在此处发布它会对我有所帮助。

谢谢

4

1 回答 1

1
Xib source code based on parents, child and sibling concept, it means it fully works on tree concept. 

<string key="className">RSViewController</string>
<string key="superclassName">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/RSViewController.h</string>

Class name :- Your current class name.
SuperclassName :- In which class your current class inherited.

Like that all keywords have its own value.
于 2013-10-30T07:23:00.217 回答