Skip to content

Instantly share code, notes, and snippets.

@stremsdoerfer
Last active January 19, 2017 05:41
Show Gist options
  • Save stremsdoerfer/539c3fbc3df839ecc40dd82a5b61a9f9 to your computer and use it in GitHub Desktop.
Save stremsdoerfer/539c3fbc3df839ecc40dd82a5b61a9f9 to your computer and use it in GitHub Desktop.
class TableViewController: UITableViewController {
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "CustomCell", for: indexPath) as! CustomCell
cell.onButtonTap = {
self.navigationController?.pushViewController(NewViewController(), animated: true)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment