ios - Iphone Xib内部结构

标签 ios xib

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

谢谢

最佳答案

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.

关于ios - Iphone Xib内部结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13620338/

相关文章:

objective-c - 将 Ipad xib 拉入通用 App

ios - FB 应用程序和 FB Messenger 之间的连接

ios - 设置 self.delegate = self 是不是糟糕的设计

ios - 在 iOS 上的 branch.io 上的两个应用程序中支持相同的自定义域

ios - 将 allowsCameraControl SCNView 属性限制为仅捏合/缩放手势

ios - xcassets 中的所有图像,然后如何加载从我的包中的 Nib 引用的图像

ios - 如何在 completionHandler 中返回字符串值?

user-interface - 使用来自 CIB 的 `Main Menu`

ios - Xcode 中的 "Frame Rectangle"与 "Layout Rectangle"

ios - Swift - 以编程方式添加自定义 Xib View 作为 subview