xib 文件中的自定义类和文件所有者设置有什么区别?

2024-04-27

In a custom xib file, what's the difference between the two following setting methods shown in the images below? enter image description here


请检查此链接:文件的所有者是什么(在界面生成器中)? https://stackoverflow.com/questions/15251370/what-is-the-files-owner-in-interface-builder 对象的自定义类和文件所有者的自定义类之间的混淆差异以及通过 IB 的步骤 https://stackoverflow.com/questions/15150713/confused-difference-between-custom-class-for-an-object-and-for-the-files-owner

在第一个屏幕截图中:您应该设置 View 的自定义类。

在第二个屏幕截图中(files owner)您可以将文件的所有者设置为您的 UIView 子类,以便您可以将插座连接到它

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

xib 文件中的自定义类和文件所有者设置有什么区别? 的相关文章

随机推荐