从 5.0 更新到 iOS 5.1 后,从 splitview 控制器的弹出窗口中的按钮呈现的操作表正在使应用程序崩溃。它输出的错误是:* Assertion failure in -[UIActionSheet presentSheetInPopoverView:], /SourceCache/UIKit/UIKit-1914.84/UIActionSheet.m:1816 所以在Splitview控制器的主视图中,我有一个我尝试的相机按钮从要求从相机胶卷或相机中选择来呈现操作表。有任何想法吗?
if(lpm != null) //Long Press Menu / Action Sheet
lpm = null;
lpm = new UIActionSheet("Select an action to perform on " + Application.MO.CurrentList[indexPath.Row].Name);
foreach(var button in buttonList)
lpm.AddButton(button);
lpm.CancelButtonIndex = buttonList.Count - 1;
lpm.Style = UIActionSheetStyle.BlackTranslucent;
lpm.ShowFrom(theList.RectForRowAtIndexPath(indexPath), this.View, true);
lpm.Clicked += delegate(object sender, UIButtonEventArgs e2) {
lpm.DismissWithClickedButtonIndex(e2.ButtonIndex, false);
Application.MO.RespondToLongPressSelection(e2.ButtonIndex);
};