Here is how I set custom font in my app
[self.titleLabel setFont:[UIFont fontWithName:@"FontName" size:self.font.pointSize]]; I get font is deprecated.
How to fix this ?
//EDIT
UIButtonCustom.h
#import <Foundation/Foundation.h> @interface UIButtonCustom : UIButton @end UIButtonCustom.m
-(void)awakeFromNib { [super awakeFromNib]; [self.titleLabel setFont:[UIFont fontWithName:@"FontName" size:self.font.pointSize]]; }
UILabelclass?UILabel'sfontproperty is not deprecated so it is safe to assume OP is inheriting from a class wherefontis deprecated.