Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Created June 2, 2015 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeabdullah/885231145a28dacbf964 to your computer and use it in GitHub Desktop.
Save mikeabdullah/885231145a28dacbf964 to your computer and use it in GitHub Desktop.
Referencing a contained view controller on iOS
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([segue.identifier isEqualToString:@"contained"]) {
self.contentViewController = segue.destinationViewController;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment