Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout Labels both Horizontally & Vertically #85

Open
H2wk opened this issue Jun 12, 2013 · 0 comments
Open

Layout Labels both Horizontally & Vertically #85

H2wk opened this issue Jun 12, 2013 · 0 comments

Comments

@H2wk
Copy link

H2wk commented Jun 12, 2013

Hi.

It would be cool if into your MGLine Templates the text would be able to be laid out traditionally (horizontally) but also vertically using: CGAffineTransformMakeRotation

#define DEGREES_TO_RADIANS(x) (M_PI * x / 180.0)

UILabel *lbl = [[UILabel alloc]init];
lbl.text = [NSString stringWithFormat:@"%@ %@",learner.firstname,learner.lastname];
lbl.transform = CGAffineTransformMakeRotation(DEGREES_TO_RADIANS(270));

I have been modifying the MGLine.m and .h files to include this. I am a little stuck with how you store the boxes properties before the layoutWithSpeed: is called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants