Skip to content

Instantly share code, notes, and snippets.

// need to define these inits so you can instantiate a dummy object in code (and coder init is required as well)
class ArrayTableViewController<T>: UITableViewController {
init() { super.init(style: .Plain) }
required init?(coder aDecoder: NSCoder) { super.init(coder:aDecoder) }
class OffersTableViewController: ArrayTableViewController<Offer> {
required init?(coder aDecoder: NSCoder) { super.init(coder:aDecoder) }
override init() { super.init() }
// then instantiate a dummy object