我有一个名为class MyClass的类UIView,我想用XIB文件初始化.我不知道如何使用调用的xib文件初始化此类View.xib
MyClass
UIView
XIB
View.xib
class MyClass: UIView { // what should I do here? //init(coder aDecoder: NSCoder) {} ?? }
ios swift
ios ×1
swift ×1