UIView init

class AView:UIView
{
    override init(frame: CGRect) {
        super.init(frame: frame)
       
        self.initialize()
    }
   
    convenience init() {
        self.init(frame: CGRectZero)
       
        self.initialize()
    }
   
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
   
    func initialize() {
        doAFunc()
    }
}

Tags: