Created
January 12, 2015 14:08
-
-
Save k06a/e635889533f4d610f57a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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