Create a gist now

Instantly share code, notes, and snippets.

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