Skip to content

Instantly share code, notes, and snippets.

@shayne
Forked from m0rsecode/gist:1d2c0ab763a761b7ad0a
Last active August 29, 2015 14:10
Show Gist options
  • Save shayne/39b006407a0fed9906c9 to your computer and use it in GitHub Desktop.
Save shayne/39b006407a0fed9906c9 to your computer and use it in GitHub Desktop.
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
// Not needed
}
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
let indexPath = self.tableView.indexPathForSelectedRow()!
let destinationController = segue.destinationViewController as ProductDetailViewController
destinationController.productData = products[indexPath.row] as PFObject
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment