Created
December 28, 2016 15:10
-
-
Save bobleesj/2fa174fdaef2deabd4d0558d4b4cb205 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | |
let cell = UITableViewCell() | |
let task = tasks[indexPath.row] | |
if let myName = task.name { | |
cell.textLabel?.text = myName | |
} | |
return cell | |
} | |
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | |
return tasks.count | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment