Skip to content

Instantly share code, notes, and snippets.

Created December 5, 2012 23:53
What would you like to do?
Add child view controller
[self addChildViewController:modalViewController];
[[modalViewController view] setFrame:[[self view] bounds]];
[[self view] addSubview:[modalViewController view]];
[modalViewController didMoveToParentViewController:self];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment