Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Created June 2, 2015 14:45
Show Gist options
  • 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