Created
June 2, 2015 14:45
-
-
Save mikeabdullah/885231145a28dacbf964 to your computer and use it in GitHub Desktop.
Referencing a contained view controller on iOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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