Skip to content

Instantly share code, notes, and snippets.

@diversario
Last active January 23, 2016 02:48
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 diversario/1d7319268eb6ecb305e2 to your computer and use it in GitHub Desktop.
Save diversario/1d7319268eb6ecb305e2 to your computer and use it in GitHub Desktop.
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
let data = tableData[indexPath.row]
let storyboard = UIStoryboard(name: "Main", bundle: NSBundle.mainBundle())
let destVC = storyboard.instantiateViewControllerWithIdentifier("goToHere") as! DestVC
destVC.data = data
navigationController?.pushViewController(destVC, animated: true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment