我们已经在我们的xamarin.ios原生应用程序中实现了UIAlertController
,它在iPhone上工作得很好但在iPad上崩溃了。请指导解决此问题。我们的代码是,
var alertController = UIAlertController.Create(null, "Select", UIAlertControllerStyle.ActionSheet);
alertController.AddAction(UIAlertAction.Create("Photo/Image", UIAlertActionStyle.Default, action => {
/* handle your action */
}
alertController.AddAction(UIAlertAction.Create("Files", UIAlertActionStyle.Default, action => {
/* handle your action */
}
PresentViewController(alertController, true, null);
它在iPhone上运行良好但在iPad上崩溃了......请帮助