I added a custom font to my application and I installed this custom font for some of the buttons by subclassing the custom font in a custom xib font

but when executed on the device, the font automatically adjusts to the top of the entire button.

Here is my font subclass code.
@interface ButtonWithBebasNeueFont : UIButton @end @implementation ButtonWithBebasNeueFont - (void)awakeFromNib { [super awakeFromNib]; self.titleLabel.font = [UIFont fontWithName:@"BebasNeue" size:self.titleLabel.font.pointSize];
}
@end
Please help me solve this problem.
Thanks.
source share