Skip to content

Instantly share code, notes, and snippets.

@deivuh
Created July 10, 2014 02:51
Show Gist options
  • Save deivuh/c6fea54988936192200e to your computer and use it in GitHub Desktop.
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
- (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