Created
October 11, 2016 20:33
-
-
Save nickmeehan/75b57f24d4121e63206c6f8ed67b3d52 to your computer and use it in GitHub Desktop.
iPad ActionSheet Presentation - SourceView and SourceRect No Permitted Arrows
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
if let popoverController = alertController.popoverPresentationController { | |
popoverController.sourceView = self.view | |
popoverController.sourceRect = CGRect(x: self.view.bounds.midX, y: self.view.bounds.midY, width: 0, height: 0) | |
popoverController.permittedArrowDirections = [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment