Swift subclass UIView

后端 未结 6 1860
时光说笑
时光说笑 2020-12-07 10:49

I want to subclass UIView and show a login like view. I\'ve created this in Objective-C, but now I want to port it to Swift. I do not use storyboards, so I crea

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-07 11:15

    This is more simple.

    override init (frame : CGRect) {
        super.init(frame : frame)
        // Do what you want.
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    

提交回复
热议问题