After updating to iOS 5.1 from 5.0, an actionsheet presented from a button in the popover of a splitview controller is crashing the app. The error that its outputting is: * Assertion failure in -[UIActionSheet presentSheetInPopoverView:], /SourceCache/UIKit/UIKit-1914.84/UIActionSheet.m:1816 So in the Master View of the Splitview controller, I have a camera button that I attempt to present an actionsheet from asking to pick from camera roll or from camera. Any ideas?
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);
};