Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7670765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:53:53+00:00 2026-05-31T15:53:53+00:00

After updating to iOS 5.1 from 5.0, an actionsheet presented from a button in

  • 0

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);
                        };
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:53:55+00:00Added an answer on May 31, 2026 at 3:53 pm

    This is a potential work-around, it has me creating an entirely seperate popover and inserting my UIActionSheet into that, which conveniently adds a really cool slide-in effect:

    var buttonList = Application.MO.LoadLongPressOptions(false);
    if(lpm != null)
    lpm = null;
    if(longpresspopover != null)
    {
        longpresspopover.Dismiss(false);
        longpresspopover = null;
    }
    longpresspopovercontroller = new UIViewController();
                        longpresspopovercontroller.View.BackgroundColor = UIColor.Black;
    longpresspopover = new UIPopoverController(longpresspopovercontroller);
                        longpresspopover.PresentFromRect(theList.Frame, this.View,UIPopoverArrowDirection.Any, true);
                        lpm = new UIActionSheet("Select an action to perform:");
                        foreach(var button in buttonList)
                            lpm.AddButton(button);
                        lpm.CancelButtonIndex = buttonList.Count - 1;
                        lpm.Style = UIActionSheetStyle.BlackTranslucent;
                        lpm.ShowInView(longpresspopovercontroller.View);
                        longpresspopover.SetPopoverContentSize(lpm.Frame.Size, false);
                        lpm.Clicked += delegate(object sender, UIButtonEventArgs e2) {
                                lpm.DismissWithClickedButtonIndex(e2.ButtonIndex, false);
                                longpresspopover.Dismiss(true);
                                Application.MO.RespondToLongPressSelection(e2.ButtonIndex);
                            };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

after updating my grails app's security plugins, i get the following error when deploying
After updating to iOS 5, the icon of my app is gone and a
When I run my iOS app in simulator after updating numerous images within the
I need to activate the loggin on the iphone, but after updating the iOS
After updating to Parsec 3.1 from 2.x, code using many1, such as word =
I came across this after updating my SDK tools from revision 15 to 17,
After sdk updating on Snow Leopard 10.6.8 from 4.1 to 5.0, cocos2d application won't
I have an app prototype that was working on Iphone4 + iOS 4.3, build
After updating to MonoTouch 5.2.4 and submitting an app to the App store, it
This error happened after updating to latest may 2009 CTP. Sometimes I do not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.