Skip to content

Instantly share code, notes, and snippets.

@jeantimex
Created October 2, 2016 02:03
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 jeantimex/cf4196a6517e69ca5a561c080d50f517 to your computer and use it in GitHub Desktop.
Save jeantimex/cf4196a6517e69ca5a561c080d50f517 to your computer and use it in GitHub Desktop.
cellForRowAtIndexPath
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("cell") as UITableViewCell? ?? UITableViewCell(style: .Default, reuseIdentifier: "cell")
cell.textLabel?.text = sections[indexPath.section].items[indexPath.row]
return cell
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment