Skip to content

Instantly share code, notes, and snippets.

@heydona
Created December 5, 2012 23:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save heydona/4220628 to your computer and use it in GitHub Desktop.
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