Override init method of UIView in swift

前端 未结 4 727
终归单人心
终归单人心 2020-12-28 08:56
class CustomView: UIView {

    var subViewColor:UIColor
    var subViewMessage:String

    override init(frame:CGRect) {
        super.init(frame:frame)
    }

             


        
4条回答
  •  一个人的身影
    2020-12-28 09:24

    Foe me it was calling a xib that doesn't exist from custom view initialiser in Bundle.main.loadNibNamed("XibNameThatDoesntExist", owner: self, options: nil) `

提交回复
热议问题