Last active
January 23, 2016 02:48
-
-
Save diversario/1d7319268eb6ecb305e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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