Reputation: 537
Just upgraded to XCode 6.3 and have gotten all of the compile errors ironed out except for one that appears on numerous classes of mine.
I do the following in an example class:
init()
{
super.init()
let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
managedContext = appDelegate.managedObjectContext!
}
This returns the following error on the super.init() call:
Must call a designated initializer of the superclass 'UITableViewController'
Anybody seen this or come up with a fix yet?
Upvotes: 1
Views: 530
Reputation: 130102
You must use the designated initializer of UITableViewController
, that is
init(style style: UITableViewStyle)
for example:
super.init(style: .Plain)
Upvotes: 6