in my project I want to make a vertical button, and the text is also vertical, will someone help ?!
something like that
Use this code to rotate the button.
btn.transform = CGAffineTransformMakeRotation(-M_PI / 2);
AND
btn.transform = CGAffineTransformMakeRotation(M_PI / 2);
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.
, , ,
btn.transform= CGAffineTransformMakeRotation(DEGREES_TO_RADIANS(270));
#define DEGREES_TO_RADIANS(x) (M_PI * x / 180.0)
CGAffineTransform ,
.
:
button.transform = CGAffineTransformMakeRotation(90.0*M_PI/180.0);
button.transform = CGAffineTransformMakeRotation(-90.0*M_PI/180.0);
(90.0 -90.0) ( ), .