Created
August 1, 2013 20:48
-
-
Save mlaster/6135144 to your computer and use it in GitHub Desktop.
This file contains hidden or 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)viewDidLoad { | |
| ChildViewController *cvc = [self.storyboard instantiateViewControllerWithIdentifier:@"ChildViewController"]; | |
| [super viewDidLoad]; | |
| [self addChildViewController:cvc]; | |
| cvc.view.frame = self.containerView.bounds; | |
| [self.containerView addSubview:cvc.view]; | |
| [cvc didMoveToParentViewController:self]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment