Skip to content

Instantly share code, notes, and snippets.

@k06a
Created January 12, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k06a/e635889533f4d610f57a to your computer and use it in GitHub Desktop.
Save k06a/e635889533f4d610f57a to your computer and use it in GitHub Desktop.
Before iOS 8, you do this:
```
[backgroundViewController setModalPresentationStyle:UIModalPresentationCurrentContext];
[backgroundViewController presentViewController:_myMoreAppsViewController animated:NO completion:nil];
```
in iOS 8, you have to do this:
```
backgroundViewController.providesPresentationContextTransitionStyle = YES;
backgroundController.definesPresentationContext = YES;
[overlayViewController setModalPresentationStyle:UIModalPresentationOverCurrentContext];
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment