Possible Duplicate:
Is it possible to lay out 2 buttons vertically on UIAlertView?
Is it possible to create UIAlertview with vertical buttons?
Possible Duplicate:
Is it possible to lay out 2 buttons vertically on UIAlertView?
Is it possible to create UIAlertview with vertical buttons?
Its too simple... If you display more than 2 buttons in UIAlertView, then it iOS directly stacks the buttons. Try to add more buttons.
I think you mean "stacked" buttons vs. side-by-side buttons.
When there are only two buttons, UIAlertView places them side-by-side. When there are 3 or more buttons, they are presented "stacked".
I had tried to write the answer as the following, but I found that the author of TSAlertView is here.
No, there are no vertical buttons for the UIAlertView class. you can however create your own implementation of a UIAlertView and custom create vertical buttons.
To replicate UIActionSheet, you only use 1 button.
alert views are just like any UIView, you can search their view hierarchy and obtain their buttons then set their transform property to CGAffineTransformMakeRotation(M_PI_2)
. You'll need to modify the frames before you do the transform or else the buttons will be partly outside the image thats behind them. You might also want to change out the view behind the buttons since it won't look like it goes with the buttons.