Skip to content

Instantly share code, notes, and snippets.

@stremsdoerfer
Last active January 19, 2017 05:40
Show Gist options
  • Save stremsdoerfer/cb9ea97be2b185936f2d435918eef286 to your computer and use it in GitHub Desktop.
Save stremsdoerfer/cb9ea97be2b185936f2d435918eef286 to your computer and use it in GitHub Desktop.
class ViewController: 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