Hi,
Can anyone help me understand this error? I subclass UITableViewController, as show below. The error is:
fatal error: use of unimplemented initializer 'init(nibName:bundle:)' for class 'MyApp.MyViewController'
class MyViewController: UITableViewController {
var thing: Thing
init(thing: Thing) {
self.thing = thing
super.init(style: .Grouped)
}It then requires me (why I don't know) to add this:
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}Then it compiles fine. My code calls `init(thing:)` and it crashes with that error.
Rob
Xcode 7b6