StoryBoard中自定义view时初始化的问题

override func drawRect(rect: CGRect) {  
    // Drawing code  
    //third  
    print("drawRect")  
}  
override init(frame: CGRect) {  
    //never  
    super.init(frame: frame)  
      
}  
required init?(coder aDecoder: NSCoder) {  
    //first  
    super.init(coder: aDecoder)  
      
}  
override func awakeFromNib() {  
    //second  
    //finish link iboutlet  
    print("awakeFromNib")  
}  

你可能感兴趣的:(StoryBoard中自定义view时初始化的问题)