Created
March 19, 2017 15:43
-
-
Save hamsternik/421def4a36727052bb238d60c655750f to your computer and use it in GitHub Desktop.
Show VC as Modal OverCurrentContext.
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
SomeModalViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"SomeModalViewControllerID"]; | |
vc.providesPresentationContextTransitionStyle = YES; | |
vc.definesPresentationContext = YES; | |
vc.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; | |
vc.modalPresentationStyle = UIModalPresentationOverCurrentContext; // UIModalPresentationPopover | |
[self presentViewController:vc animated:YES completion:nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment