Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example 'present from window' crashes on iPad #84

Closed
Lily418 opened this issue Apr 14, 2016 · 0 comments
Closed

Example 'present from window' crashes on iPad #84

Lily418 opened this issue Apr 14, 2016 · 0 comments

Comments

@Lily418
Copy link

Lily418 commented Apr 14, 2016

Using an iPad Mini 2 running iOS 9.3.1 and building the example in XCode 7.3.

Running the example and then tapping 'Present from window' button causes the following crash:

Terminating app due to uncaught exception 'NSGenericException', reason: 'Your application has presented a UIAlertController (<UIAlertController: 0x12c561280>) 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.'

Investigation lead me to this SO question suggesting extra properties are required for the popover on iPad, this makes sense because running the example on the iPhone 6s simulator worked fine.
UIActionSheet from Popover with iOS8 GM

Lily418 pushed a commit to Lily418/FDTake that referenced this issue Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant