开发者

iPhone: Verticle alignment for Numbers in Label in Landscape mode

开发者 https://www.devze.com 2023-03-13 11:40 出处:网络
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 a

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 开发者_StackOverflowvalue 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]

iPhone: Verticle alignment for Numbers in Label in Landscape mode

iPhone: Verticle alignment for Numbers in Label in Landscape mode

iPhone: Verticle alignment for Numbers in Label in Landscape mode

iPhone: Verticle alignment for Numbers in Label in Landscape mode


try this

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

精彩评论

暂无评论...
验证码 换一张
取 消