I am creating a pop up dialog box (UIAlertView). It works great, except I need to choose from 19 items, and the buttons do not automatically scroll and only five fit on the screen.
So, can I make them scroll? If not, can I put a UIPickerView in an alert view? Or, is there a better way?
Code so far:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Provider"
message:@"Please choose your provider:"
delegate:self
cancelButtonTitle:nil
otherButtonTitles:@"AT&T",@"Verizon",@"Sprint",@"Nextel",@"T-Mobile",@"Alltel",@"US Cellular",@"Virgin Mobile",@"Metro PCS",@"Boost Mobile",@"Cricket",@"Rogers(Can)",@"Telus(Can)",@"Bell Mobility(Can)",@"Fido",@"Virgin(Can)",@"O2",@"Vodaphone",@"Meteor", nil];
[alert show];
[alert release];
You might consider using a UIActionSheet instead. It will automatically scroll when you have a lot of items.