Does anyone get this message trying to show a UIActionSheet from a popover?
Your application introduced UIAlertController () of the UIAlertControllerStyleActionSheet style. ModalPresentationStyle UIAlertController with this style is UIModalPresentationPopover. You must provide location information for this popover through the popoverPresentationController alert controller. You must specify either sourceView, and sourceRect, or barButtonItem. If this information is not known when presenting the alert controller, you can provide it in the UIPopoverPresentationControllerDelegate -prepareForPopoverPresentation method.
Earlier to GM, I used some workaround to convert a UIActionSheet to a UIAlertController, and this works fine. However, it seems that Apple was trying to solve the problems with the UIActionSheet, and I did not want to use my workaround, but it seems that I have no choice ...
ios ios8 uialertcontroller uipopovercontroller uiactionsheet
Tomer Peled Sep 10 '14 at 7:42 on 2014-09-10 07:42
source share