Advertisement
wkerswell

Prepare for segue

Oct 8th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
  2. {
  3.     // Make sure your segue name in storyboard is the same as this line
  4.     if ([[segue identifier] isEqualToString:@"YOUR_SEGUE_NAME_HERE"])
  5.     {
  6.         // Get reference to the destination view controller
  7.         YourViewController *vc = [segue destinationViewController];
  8.  
  9.         // Pass any objects to the view controller here, like...
  10.         [vc setMyObjectHere:object];
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement