Skip to content

Instantly share code, notes, and snippets.

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
}
//
// CGViewController.swift
// Banksy
//
// Created by Shayne Sweeney on 11/1/14.
// Copyright (c) 2014 App Couture. All rights reserved.
//
import UIKit