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

Can't set custom font or font size. #10

Closed
mitchellporter opened this issue Feb 26, 2015 · 1 comment
Closed

Can't set custom font or font size. #10

mitchellporter opened this issue Feb 26, 2015 · 1 comment

Comments

@mitchellporter
Copy link

I'm having trouble setting a custom font on my KILabel.

Here's my code:

 self.myLabel = [[KILabel alloc] init];
 self.myLabel.text = @"Some random text";
 self.myLabel.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:12.4];
 self.myLabel.textColor = [UIColor colorWithRed:0.000 green:0.000 blue:0.000 alpha:1];
 [self.myLabel sizeToFit];

Any idea how I can set a custom font and font size?

@mitchellporter
Copy link
Author

I just took a closer look at the code and realized I need to be setting the font property before setting the text.

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

No branches or pull requests

1 participant