Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you rotate text for UIButton and UILabel in Objective-C?

How can you rotate text for UIButton and UILabel? 90 degrees, 180 degrees.

like image 566
jdl Avatar asked Jun 13 '11 04:06

jdl


1 Answers

[*yourlabelname* setTransform:CGAffineTransformMakeRotation(-M_PI / 2)]; 

rotated image enter image description here

pervious image enter image description here

like image 143
Gypsa Avatar answered Oct 01 '22 13:10

Gypsa