[Mono-bugs] [Bug 614981] New: when adding "other" buttons to a UIActionSheet in iPad, if you add more than one, the last one gets truncated

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 16 23:15:46 EDT 2010



           Summary: when adding "other" buttons to a UIActionSheet in
                    iPad, if you add more than one, the last one gets
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: bryancostanich at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer
           Blocker: ---

Created an attachment (id=369689)
 --> (http://bugzilla.novell.com/attachment.cgi?id=369689)
solution with a page that does it.

Description of Problem:
if you add 4 "other" buttons to a UIActionSheet in the iPad, the 4th one gets
dropped. if you add 3, the 3rd gets dropped.

Steps to reproduce the problem:
1. create an application for the ipad
2. create a xib and controller with a button
3. create an outlet on the button and in the TouchUpInside handler, put:
            this._actionSheet = new UIActionSheet ("action sheet with other
            this._actionSheet.AddButton ("delete");
            this._actionSheet.AddButton ("cancel");
            this._actionSheet.AddButton ("a different option!");
            this._actionSheet.AddButton ("another option");
            this._actionSheet.AddButton ("a third other option");
            this._actionSheet.DestructiveButtonIndex = 0;
            this._actionSheet.CancelButtonIndex = 1;
            //this._actionSheet.FirstOtherButtonIndex = 2;
            this._actionSheet.Clicked += delegate(object a, UIButtonEventArgs
b) { Console.WriteLine ("Button " + b.ButtonIndex.ToString () + " clicked"); };
            this._actionSheet.ShowInView (this.View);

4. run it

Actual Results:
"a third other option" doesn't show up.

Expected Results:
it shows up

How often does this happen? 

Additional Information:

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list