// // MSSAutoresizeLabelFlowConfig.m // MSSAutoresizeLabelFlow // // Created by Mrss on 15/12/26. // Copyright © 2015年 expai. All rights reserved. // #import "MSSAutoresizeLabelFlowConfig.h" #define JKColor(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)] @implementation MSSAutoresizeLabelFlowConfig + (MSSAutoresizeLabelFlowConfig *)shareConfig { static MSSAutoresizeLabelFlowConfig *config; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ config = [[self alloc]init]; }); return config; } // default - (instancetype)init { self = [super init]; if (self) { self.contentInsets = UIEdgeInsetsMake(0, 15, 0, 15); self.lineSpace = 12; self.itemHeight = 32; self.itemSpace = 12; self.itemCornerRaius = 3; // self.itemColor = [UIColor whiteColor]; self.itemColor = JKColor(244, 245, 246, 1); self.textMargin = 20; // self.textColor = [UIColor darkTextColor]; self.textColor = JKColor(97, 111, 125, 1); self.textFont = [UIFont fontWithName:@"PingFangSC-Medium" size:12]; // self.backgroundColor = [UIColor colorWithRed:0.85 green:0.85 blue:0.85 alpha:1]; self.backgroundColor = [UIColor whiteColor]; } return self; } @end