Skip to content

Instantly share code, notes, and snippets.

Embed
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