Reputation: 7504
I am trying to align label text vertically aligned for my iPhone application Timer. Basically it's a game application and timer value appears in MM:SS format in label in landscape mode. When I have added label and tried to set this value it appears like image 1 which is not correct. I found from many threads that you can set multiple line and make label width as one char but it appears like image 2 which is also wrong. I want my timer value to appear as image 3. Could anyone please tell me how could I achieve it?
Thanks.
[Added real picture of what I am trying to do]
Upvotes: 0
Views: 226
Reputation: 453
try this
CGAffineTransform transform=CGAffineTransformMakeRotation(300);//change angle according.
transform=CGAffineTransformMakeRotation(-300);//change angle according.
lbl.transform=transform;
Upvotes: 1