Created
July 10, 2014 02:51
-
-
Save deivuh/c6fea54988936192200e to your computer and use it in GitHub Desktop.
Prepare for Segue iOS, to pass around objects between view controllers when using story board segues
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 | |
{ | |
if ([[segue identifier] isEqualToString:@"<#SEGUE_NAME#>"]) | |
{ | |
TheViewController *vc = [segue destinationViewController]; | |
[vc setObject:object]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment