UIAlertview with vertical buttons

Possible duplicate:
Is it possible to set 2 buttons vertically on the UIAlertView?

Can I create a UIAlertview using vertical buttons?

+3
source share
5 answers

Too simple ... If more than two buttons are displayed in UIAlertView, then iOS directly adds the buttons. Try adding a few more buttons.

+10
source

I think you mean the "folded" buttons and side by side.

When there are only two buttons, UIAlertView places them side by side. When there are 3 or more buttons, they are displayed “folded”.

+3
source

: , TSAlertView .

. TSAlertView

+2

, UIAlertView. UIAlertView .

To replicate a UIActionSheet, you only use button 1.

0
source

warnings are similar to any UIView, you can search for their hierarchy of views and get their buttons, and then set their transform property to CGAffineTransformMakeRotation(M_PI_2). You will need to change the frames before doing this conversion, otherwise the buttons will be partially outside the image located behind them. You can also change the look behind the buttons, as this will not look with the buttons.

-1
source

Source: https://habr.com/ru/post/1787329/


All Articles