Created
May 2, 2015 17:51
-
-
Save tLewisII/ad218adc4dda5c61602f to your computer and use it in GitHub Desktop.
Changes in iOS 8.3 breaks older forced popover code.
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
// Need both of these, since one `adaptivePresentationStyleForPresentationController:` works on 8.0 to 8.2, and the other, | |
// `adaptivePresentationStyleForPresentationController:traitCollection:` works on 8.3 plus | |
- (UIModalPresentationStyle)adaptivePresentationStyleForPresentationController:(UIPresentationController *)controller { | |
return UIModalPresentationNone; | |
} | |
- (UIModalPresentationStyle)adaptivePresentationStyleForPresentationController:(UIPresentationController *)controller traitCollection:(UITraitCollection *)traitCollection { | |
return UIModalPresentationNone; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment