Last active
January 2, 2016 13:29
-
-
Save Bayonetta/8310695 to your computer and use it in GitHub Desktop.
弹出全透明ViewController
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
//Only work in iPad, because the modalPresentationStyle default value is UIModalPresentationFullScreen in iPhone | |
UIViewController* controller = self.view.window.rootViewController; | |
CustomUIViewController *presentationController = [[CustomUIViewController alloc]init]; | |
controller.modalPresentationStyle = UIModalPresentationCurrentContext; | |
[controller presentViewController:presentationController animated:NO completion:^{}]; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment