Forked from m0rsecode/gist:1d2c0ab763a761b7ad0a
Last active
August 29, 2015 14:10
This file contains hidden or 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
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