Created
June 29, 2013 03:32
-
-
Save Critter/5889596 to your computer and use it in GitHub Desktop.
passing an object using a seque
This file contains 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
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender | |
{ | |
// Make sure your segue name in storyboard is the same as this line | |
if ([[segue identifier] isEqualToString:@"YOUR_SEGUE_NAME_HERE"]) | |
{ | |
// Get reference to the destination view controller | |
YourViewController *vc = [segue destinationViewController]; | |
// Pass any objects to the view controller here, like... | |
[vc setMyObjectHere:object]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment