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,817
  • 2
  • 26
  • 51
Roval
  • 508
  • 1
  • 4
  • 21

0 Answers0