Skip to content

Instantly share code, notes, and snippets.

@aGupieWare
Created November 17, 2014 03:07
Swift client, final prepare for segue . . .
let destViewController = segue.destinationViewController as PlumbingSupplyItemDescriptionViewController
let selectedCell = sender as UITableViewCell
let selectedIndex = self.tableView.indexPathForCell(selectedCell)
destViewController.bsn_plumbingItem = self.dataSource[selectedIndex!.row]
destViewController.bsn_capturedImage = selectedCell.imageView.image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment