Binding TableViewCell
โชว์ชื่อรายการให้ถูกต้อง
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "todoItemCell", for: indexPath)
cell.textLabel?.text = todo.item(at: indexPath.row).title
return cell
}
แสดง Checkmark ให้อันที่ทำแล้วด้วย

Last updated