将.xib文件连接到自定义类 [英] Connecting an .xib-File to a Custom Class

查看:63
本文介绍了将.xib文件连接到自定义类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个自定义.xib文件和一个 UIView 的自定义子类.连接两者的过程是什么?

I have created a custom .xib-file and a custom subclass of UIView. What is the procedure to connect the two?

这意味着当我在自定义类属性中设置 MyCustomClass 时,它将变成我的自定义.xib文件并根据MyCustomClass.swift进行操作.

Meaning that when I set MyCustomClass in the custom class attribute, it turns into my custom .xib-file and acts according to MyCustomClass.swift.

推荐答案

单击您的Xib文件并转到此处,然后在此处设置您的自定义类

Click on your Xib file and go here and set your custom Class here

这篇关于将.xib文件连接到自定义类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆