Paresh Masani
Paresh Masani

Reputation: 7504

iPhone: Verticle alignment for Numbers in Label in Landscape mode

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]

enter image description here

The timer in land scape mode....not correct

The timer when I set multiple lines for each digit...

I want this is to happen...

Upvotes: 0

Views: 226

Answers (1)

iAmitWagh
iAmitWagh

Reputation: 453

try this

    CGAffineTransform transform=CGAffineTransformMakeRotation(300);//change angle according.
    transform=CGAffineTransformMakeRotation(-300);//change angle according.
    lbl.transform=transform;

Upvotes: 1

Related Questions