views:

15

answers:

1

There i have a problem. When i add button to my alert, but if the button numbers are more than 6, the button will show beyond the alert view frame. How can i display them correctly just like a scroll view?

A: 

Have you thought about splitting it up into two UIAlertViews? Try making your 5th/6th button a "More Options" button, and handle that within the dismissedWithButton function. Then have the last button be a "Cancel" button.

abelito
Thanks for your answer.It is maybe a solution.But if i have lots of button, how many alerts should i create.What i want is that the buttons can show in one alert, and them can be scrolled? But i can not find this method?
abelito