Skip to content

Instantly share code, notes, and snippets.

@anknetau anknetau/gist.m
Created Feb 3, 2016

What would you like to do?
Add a child view controller
UIViewController* controller = [self.storyboard instantiateViewControllerWithIdentifier:@"identifier"]; // or whatever
[self addChildViewController:controller];
controller.view.frame = CGRectMake(0, 0, 100, 100); // or whatever
[self.view addSubview:controller.view];
[controller didMoveToParentViewController:self];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.