Vertical iOS Development Button

in my project I want to make a vertical button, and the text is also vertical, will someone help ?!

something like that

enter image description here

0
source share
5 answers

Use this code to rotate the button.

btn.transform = CGAffineTransformMakeRotation(-M_PI / 2);

AND

btn.transform = CGAffineTransformMakeRotation(M_PI / 2);
+1
source

Instead, you can rotate the button using:

yrButton.transform = CGAffineTransformMakeRotation(90.0*M_PI/180.0);

This will give you a crater with a frequency of 90 degrees.

0
source

, , ,

btn.transform= CGAffineTransformMakeRotation(DEGREES_TO_RADIANS(270));

#define DEGREES_TO_RADIANS(x) (M_PI * x / 180.0) 
0

.

:

button.transform = CGAffineTransformMakeRotation(90.0*M_PI/180.0);

:

button.transform = CGAffineTransformMakeRotation(-90.0*M_PI/180.0);

(90.0 -90.0) ( ), .

0

All Articles