Last active
June 11, 2018 20:18
-
-
Save acecilia/9f871af7496822401d138a2fc43d2fc3 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 cellIdentifier = "Cell" | |
let cell = tableView.dequeueReusableCell( | |
withIdentifier: cellIdentifier | |
) as? CustomCell ?? CustomCell(reuseIdentifier: cellIdentifier) | |
cell.customLabel.text = "Title" | |
return cell | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment