2012-12-05 5 views

답변

10

UILabel 카테고리를 만들고 그 위에 다음 코드를 추가하십시오.

@implementation UILabel (CustomFontLabel) 

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

@end 
관련 문제