Skip to content

Instantly share code, notes, and snippets.

@m0rsecode
Created December 8, 2014 01:14
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
self.selectedProduct = products[indexPath.row] as PFObject
}
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
let destinationController = segue.destinationViewController as ProductDetailViewController
destinationController.productData = self.selectedProduct as PFObject
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment