0

I've made simple UILabel with custom font. Can I use it in Storyboard somehow? Is it even possible?

#import "UILabel+WithFont.h"

@implementation UILabel (WithFont)

-(void)awakeFromNib{
    float size = [self.font pointSize];
    self.font = [UIFont fontWithName:@"MyFont" size:size];
}

@end

Maybe I can switch between UILabel and my UILabel with category in code?

Soumya Ranjan
  • 4,711
  • 2
  • 25
  • 49
Roval
  • 498
  • 1
  • 4
  • 20

0 Answers0