酷店

MSSAutoresizeLabelFlowConfig.m 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // MSSAutoresizeLabelFlowConfig.m
  3. // MSSAutoresizeLabelFlow
  4. //
  5. // Created by Mrss on 15/12/26.
  6. // Copyright © 2015年 expai. All rights reserved.
  7. //
  8. #import "MSSAutoresizeLabelFlowConfig.h"
  9. @implementation MSSAutoresizeLabelFlowConfig
  10. + (MSSAutoresizeLabelFlowConfig *)shareConfig {
  11. static MSSAutoresizeLabelFlowConfig *config;
  12. static dispatch_once_t onceToken;
  13. dispatch_once(&onceToken, ^{
  14. config = [[self alloc]init];
  15. });
  16. return config;
  17. }
  18. // default
  19. - (instancetype)init {
  20. self = [super init];
  21. if (self) {
  22. self.contentInsets = UIEdgeInsetsMake(10, 10, 10, 2);
  23. self.lineSpace = 10;
  24. self.itemHeight = 25;
  25. self.itemSpace = 10;
  26. self.itemCornerRaius = 3;
  27. self.itemColor = [UIColor whiteColor];
  28. self.itemColor = [UIColor clearColor];
  29. self.textMargin = 20;
  30. self.textColor = [UIColor darkTextColor];
  31. self.textColor = [UIColor whiteColor];
  32. self.textFont = [UIFont systemFontOfSize:15];
  33. self.backgroundColor = [UIColor colorWithRed:0.85 green:0.85 blue:0.85 alpha:1];
  34. self.backgroundColor = [UIColor blackColor];
  35. }
  36. return self;
  37. }
  38. @end