Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-24-2008, 03:51 PM   #1 (permalink)
New Member
 
Nitrex88's Avatar
 
Join Date: Apr 2008
Location: Long Island, NY
Age: 21
Posts: 84
Nitrex88 is an unknown quantity at this point
Send a message via AIM to Nitrex88 Send a message via Skype™ to Nitrex88
Default Help with Text Orientation

Hi again. I was just wondering if there was a way to set a labels orietation not using interface builder. I have an application where the interface is in portrait mode but I put the status bar at the top. I want to rotate a UILabel I have in the interface but can't find and label.textOrientation property or something like that. Is there a way to do this. Thanks in advance
Nitrex88 is offline   Reply With Quote
Old 04-28-2008, 09:20 AM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Location: Lexington, KY
Posts: 108
Fastrak is an unknown quantity at this point
Default Re: Help with Text Orientation

Set the transform matrix to rotate the text view

Code:
UILabel *myLabel=[[UILabel alloc] initWithFrame:CGRectMake(50,100,200,40)];
[myLabel setText:@"Testing"];
[myLabel setTransform:CGAffineTransformMakeRotation(3.14/2)];
[self addSubview:myLabel];
Fastrak is offline   Reply With Quote
Old 04-28-2008, 02:06 PM   #3 (permalink)
New Member
 
Nitrex88's Avatar
 
Join Date: Apr 2008
Location: Long Island, NY
Age: 21
Posts: 84
Nitrex88 is an unknown quantity at this point
Send a message via AIM to Nitrex88 Send a message via Skype™ to Nitrex88
Default Re: Help with Text Orientation

Quote:
Originally Posted by Fastrak
Set the transform matrix to rotate the text view

Code:
UILabel *myLabel=[[UILabel alloc] initWithFrame:CGRectMake(50,100,200,40)];
[myLabel setText:@"Testing"];
[myLabel setTransform:CGAffineTransformMakeRotation(3.14/2)];
[self addSubview:myLabel];
Why thank you. That was exactly what I was looking for.

Cheers
Nitrex88 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Wrap Text in UITableViewCell ? satyanarayanagv iPhone SDK Development 7 12-16-2009 05:05 AM
Outline text in a UILabel? Groucho iPhone SDK Development 3 11-03-2008 09:33 PM
Keyboard hides text field - how do I fix this? pendraggon87 iPhone SDK Development 10 07-03-2008 07:43 AM
Text Orientation in a UILabel torynfarr iPhone SDK Development 2 05-20-2008 11:37 AM
Text File opening ayrkain iPhone SDK Development 3 04-22-2008 03:59 PM


» Advertisements
» Online Users: 405
13 members and 392 guests
7twenty7, AppsBlogger, David-T, Duncan C, EvilElf, HemiMG, heshiming, iekei, LunarMoon, Murphy, sacha1996, Sami Gh, teebee74
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,127
Posts: 402,915
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:44 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0