Last active
          January 26, 2017 02:16 
        
      - 
      
- 
        Save chelseatroy/58d629204b1f9aab81d8bc04501b00a6 to your computer and use it in GitHub Desktop. 
    Passing Information With Segues Example iOS
  
        
  
    
      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
    
  
  
    
  | import UIKit | |
| import FutureKit | |
| class ListOfFruitsViewController: UITableViewController { | |
| ... | |
| override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { | |
| if (segue.identifier == "goToFruitDetailsSegue") { | |
| if let | |
| fruitDetailController = segue.destinationViewController as? FruitDetailViewController, | |
| selectedFruit = self.selectedFruit | |
| { | |
| fruitDetailController.fruit = selectedFruit | |
| } | |
| } | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment