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