Question : Problem: How do I rotate a label 90 degrees in Interface Builder for iPhone

How do I rotate a label 90 degrees in Interface Builder for the iPhone?

I want the app to remain vertical, but I want the text in a label to display vertically but 90 degrees.

An example of how I would want the text to be positioned can be found here:
http://www.tutorialbeach.com/tutorials/images/frozen_ice_text_3.jpg

Thanks for any suggestions.

Answer : Problem: How do I rotate a label 90 degrees in Interface Builder for iPhone

I found out :o)

1:
2:
myLabel.transform = CGAffineTransformMakeRotation (3.14/2)
//the (3.14/2) is a 90 degree rotation in radian measure
Open in New Window Select All
Random Solutions  
 
programming4us programming4us