• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4817
  • Last Modified:

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.
0
MC3HelpDesk
Asked:
MC3HelpDesk
1 Solution
 
MC3HelpDeskAuthor Commented:
I found out :o)


myLabel.transform = CGAffineTransformMakeRotation (3.14/2)
//the (3.14/2) is a 90 degree rotation in radian measure

Open in new window

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now