I am working with the UIAlertController.
Right now I am able to list an item from the following code:
{
UIAlertController *controller = [UIAlertController alertControllerWithTitle: @"Beds"
message: @""
preferredStyle: UIAlertControllerStyleAlert];
[controller.view setBackgroundColor:[UIColor clearColor]];
[controller.view setTintColor:[UIColor blackColor]];
for (int a=0;a<[bedsCount count];a++)
{
UIAlertAction *button = [UIAlertAction actionWithTitle: [bedsCount objectAtIndex:a]
style:UIAlertActionStyleDefault
handler:^(UIAlertAction *action)
{
[bedSelectionText setTitle:[bedsCount objectAtIndex:a] forState:UIControlStateNormal];
}];
[controller addAction: button];
}
I want to show list on button click in UIAlertController in format shown in below link: