Skip to content

Instantly share code, notes, and snippets.

@aGupieWare
Created November 17, 2014 03:07
Show Gist options
  • Select an option

  • Save aGupieWare/8b3445ef6b00afbea0b2 to your computer and use it in GitHub Desktop.

Select an option

Save aGupieWare/8b3445ef6b00afbea0b2 to your computer and use it in GitHub Desktop.
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