Vertical text in a Horizontal UIButton

Posted by ArQangel on Stack Overflow See other posts from Stack Overflow or by ArQangel
Published on 2012-11-05T10:51:05Z Indexed on 2012/11/05 11:01 UTC
Read the original article Hit count: 187

Filed under:
|

I'm using a vertical UIButton in a portrait app (Just a normal button that is of width 60 and Height 160)

I want to put the label Vetically down the button instead of across it.

When I use the following code to rotate the label

    [workPackageButton.titleLabel setTransform:CGAffineTransformMakeRotation(M_PI / 2)];

It rotates the label but the length seems to be constrained by the original width, so I get the ... abreviation in the middle. Is there an easy way round this?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about uibutton