Closed mitchellporter closed 9 years ago
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?
I just took a closer look at the code and realized I need to be setting the font property before setting the text.
I'm having trouble setting a custom font on my KILabel.
Here's my code:
Any idea how I can set a custom font and font size?