Beginning Table Views · Challenge: Creating Checkmark Instances | Ray Wenderlich


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5995-beginning-table-views/lessons/16

Why here row0Item.text use twice ?

That’s definitely a type-o. It should be row3Item.text.

Hi, I have a question about ‘scope’.
Constant ‘cell’ is being used everywhere but it only declared in " override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {}"

Why I can use ‘cell’ everywhere?

@hyewon707 You define the cell in both methods so you can use it in both places. Please let me know if you have any more questions or issues about the whole thing. Thank you!

Configure checkmark method is actually doing the wrong thing it’s altering the checkmarks for the tableview it’s so wrong.

@bdmoakley Can you please help with this when you get a chance? Thank you - much appreciated! :]