简洁调用字号

#import <Foundation/Foundation.h>

#define XDefaultFontName @"FZLanTingHeiS-R-GB"

UIFont *XFont(CGFloat size);

#define XFont14 XFont(14)
#define XFont12 XFont(12)
#define XFont11 XFont(11)
#import "XFont.h"

UIFont *XFont(CGFloat size)
{
    return [UIFont fontWithName:XDefaultFontName size:size];
}
原文地址:https://www.cnblogs.com/songxing10000/p/4822477.html