Hello,
Working my way through the 2nd Tutorial and I’m coming across the following error when trying to call the super. “Property ‘self.row0item’ not initialized at super.init call”. Code below. Can someone point me in the right direction?
Thank you,
Darin
var items: [ChecklistItem]
required init?(coder aDecoder: NSCoder) { items = [ChecklistItem]() let row0item = ChecklistItem() row0item.text = "Walk the dog" row0item.checked = false items.append(row0item) let row1item = ChecklistItem() row1item.text = "Brush my teeth" row1item.checked = true items.append(row1item) let row2item = ChecklistItem() row2item.text = "Learn iOS development" row2item.checked = true items.append(row2item) let row3item = ChecklistItem() row3item.text = "Soccer practice" row3item.checked = false items.append(row3item) let row4item = ChecklistItem() row4item.text = "Eat ice cream" row4item.checked = true items.append(row4item) super.init(coder: aDecoder) // Error: Property 'self.row0item' not initialized at super.init call }