The problem
Customize view
and then use xib
to load this view
. Run it and then crash
:
Thread 1: Fatal error: init(coder:) has not been implemented
The solution
will
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
Just call the superclass method instead:
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}