CGXVerticalMenuCustomTextModel.m 899 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // CGXVerticalMenuCustomTextModel.m
  3. // CGXVerticalMenuView-OC
  4. //
  5. // Created by CGX on 2018/05/01.
  6. // Copyright © 2019 CGX. All rights reserved.
  7. //
  8. #import "CGXVerticalMenuCustomTextModel.h"
  9. @implementation CGXVerticalMenuCustomTextModel
  10. - (void)setValue:(id)value forUndefinedKey:(NSString *)key
  11. {
  12. }
  13. - (instancetype)init
  14. {
  15. self = [super init];
  16. if (self) {
  17. self.textColor = [UIColor blackColor];
  18. self.textBgColor = [[UIColor whiteColor] colorWithAlphaComponent:0];;
  19. self.textFont = [UIFont systemFontOfSize:14];
  20. self.spaceLeft = 10;
  21. self.spaceRight = 10;
  22. self.spaceTop = 0;
  23. self.spaceBottom = 0;
  24. self.textAlignment = NSTextAlignmentCenter;
  25. self.numberOfLines = 1;
  26. self.borderColor = [UIColor whiteColor];
  27. self.borderWidth = 0;
  28. self.borderRadius = 0;
  29. }
  30. return self;
  31. }
  32. @end