标签:
#import <Foundation/Foundation.h> @interface FontManager : NSObject @property (nonatomic, strong, readonly) NSDictionary *fontList; + (instancetype)sharedManager; //加载本地字体Plist文件 //- (void)setupFontList; //给Label设置字体 - (void)setLabel:(id)sender withText:(NSString*)aText andFontKey:(NSString*)key; //给Button设置字体 - (void)setButton:(id)sender fontKey:(NSString*)fontKey buttonState:(UIControlState)controlState; //给Textfiled设置字体 - (void)setTextfiled:(id)sender WithText:(NSString*)aText Fontkey:(NSString*)key PlaceHolderKey:(NSString*)placeHolder; - (UIFont*)getFontWithFontKey:(NSString*)key; - (UIColor*)getColorWithFontKey:(NSString*)key; @end
剩下 .m实现就不贴了,很简单。
标签:
原文地址:http://www.cnblogs.com/xiongzenghui/p/4669043.html