使用以下方式实现即可: required init(coder aDecoder: NSCoder) { super.init(coder: aDecoder)! // fatalError("init(coder:) has not been implemented") }