Bug 15886 - UIActionSheet not displaying properly when more than a screenful of items are added.
Summary: UIActionSheet not displaying properly when more than a screenful of items are...
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 7.0.2.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-11-01 19:14 UTC by Jon Goldberger [MSFT]
Modified: 2016-05-24 20:33 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Comment 1 Jon Goldberger [MSFT] 2013-11-01 19:15:10 UTC
I have a question about the use of UIActionSheet in iOS7,

I use UIActionSheet to show options in my application, but now to update the iOS7 when I show more than 20 items that are visible on the screen of the iPad, the rest of the elements overlap the text and not allow me to choose the right, you will have some solution for these cases and not having to keep UITableViewSource.

I use the following code:

List<int> list = Enumerable.Range (1, 30).ToList ();
UIActionSheet actionSheet = new UIActionSheet ();
foreach(var fila in list)
{
actionSheet.Add (fila.ToString());
}
actionSheet.Title = "Numbers";
actionSheet.Add ("Cancel");
actionSheet.CancelButtonIndex = 30;
actionSheet.Style = UIActionSheetStyle.BlackOpaque;
actionSheet.ShowInView(this.View);
actionSheet.Clicked += delegate(object sender2, UIButtonEventArgs e2) 
{
if (e2.ButtonIndex==-1 || e2.ButtonIndex==30)
{

} 
else
{
new UIAlertView("Selected:",list[e2.ButtonIndex].ToString(),null,"Ok").Show();
} 
};
Comment 2 Sebastien Pouliot 2013-11-01 23:03:39 UTC
This was answered on the forums  [1] yesterday.

[1] http://forums.xamarin.com/discussion/comment/32517/
Comment 3 Sebastien Pouliot 2016-05-24 20:33:20 UTC
Should have been closed with comment #2