corin8823 / Popover

Popover is a balloon library like Facebook app. It is written in pure swift.
MIT License
2.09k stars 326 forks source link

Popover crashes on iPad #104

Closed vaibhav-varshaaweblabs closed 6 years ago

vaibhav-varshaaweblabs commented 6 years ago

Popover crashes on iPad

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

corin8823 commented 6 years ago

I think your crash is caused by UIAlertController. this article is useful for you. https://stackoverflow.com/questions/31577140/uialertcontroller-is-crashed-ipad