Skip to content

Commit

Permalink
Fix crash on iPad
Browse files Browse the repository at this point in the history
Without presentation controller actionSheet fails on iPad with uncaught exception:

[ Uncaught Exception ]
Name: NSGenericException, Reason: Your application has presented a UIAlertController (<UIAlertController:>) of style UIAlertControllerStyleActionSheet. The modalPresentationStyle of a UIAlertController with this style is UIModalPresentationPopover. You must provide location information for this popover through the alert controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem.  If this information is not known when you present the alert controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.
  • Loading branch information
Vladimir Tyrin committed Feb 16, 2018
1 parent 52cf35f commit 8b6e0c8
Showing 1 changed file with 1 addition and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b6e0c8

Please sign in to comment.