내 응용 프로그램에서 ActionSheet를 사용하고 있습니다. 제 아이폰에서는 작동하지만 iPad 시뮬레이터에서는 그렇지 않습니다. 그것이 말하는대로, 그냥 아이 패드 자사의 UIPopoverPresentationController에 있기 때문에 optionMenu을 제시하기 전에 소스보기 또는 버튼을 제공해야작업 시트가 작동하지 않습니다. 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.'
이 [Link] (http://stackoverflow.com/questions/24224916/presenting-a-uialertcontroller-properly-on-analipad-using-ios-8)이 도움이 될 수 있습니다. –
ios 8 이상 동작 시트가 없습니다. UIActionController 인스턴스 UIAlertControllerStyleActionSheet ...로 형식을 설정해야합니다.이 작업은 도움이 될 수 있지만 .......... uipopover가 iPad 용으로 제안되었지만 .... – Spynet
당신은 ipad에 popover – Totka