Adicionar lista de caixas de seleção ao UIAlertController
Estou trabalhando com oUIAlertController.
No momento, posso listar um item do seguinte código:
{
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];
}
Quero mostrar a lista no botão, clique emUIAlertController no formato mostrado no link abaixo: