Skip to content

Instantly share code, notes, and snippets.

@acecilia
Last active June 11, 2018 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acecilia/9f871af7496822401d138a2fc43d2fc3 to your computer and use it in GitHub Desktop.
Save acecilia/9f871af7496822401d138a2fc43d2fc3 to your computer and use it in GitHub Desktop.
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