酷店

XLPageViewControllerConfig.m 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // XLPageViewControllerConfig.m
  3. // XLPageViewControllerExample
  4. //
  5. // Created by MengXianLiang on 2019/5/8.
  6. // Copyright © 2019 jwzt. All rights reserved.
  7. // https://github.com/mengxianliang/XLPageViewController
  8. #import "XLPageViewControllerConfig.h"
  9. @implementation XLPageViewControllerConfig
  10. + (XLPageViewControllerConfig *)defaultConfig {
  11. XLPageViewControllerConfig *config = [[XLPageViewControllerConfig alloc] init];
  12. //标题
  13. config.titleNormalColor = [UIColor grayColor];
  14. config.titleSelectedColor = [UIColor blackColor];
  15. config.titleNormalFont = [UIFont systemFontOfSize:18];
  16. config.titleSelectedFont = [UIFont boldSystemFontOfSize:18];
  17. config.titleSpace = 10;
  18. config.titleColorTransition = true;
  19. //标题栏
  20. config.titleViewInset = UIEdgeInsetsMake(0, 10, 0, 10);
  21. config.titleViewHeight = 40.0f;
  22. config.titleViewBackgroundColor = [UIColor clearColor];
  23. //阴影
  24. config.shadowLineHidden = false;
  25. config.shadowLineWidth = 30.0f;
  26. config.shadowLineHeight = 3.0f;
  27. config.shadowLineColor = [UIColor blackColor];
  28. config.shadowLineAnimationType = XLPageShadowLineAnimationTypePan;
  29. //底部分割线
  30. config.separatorLineHidden = false;
  31. config.separatorLineColor = [UIColor lightGrayColor];
  32. config.separatorLineHeight = 0.5f;
  33. config.separatorLineBottomMargin = 0;
  34. //分段式标题颜色
  35. config.segmentedTintColor = [UIColor blackColor];
  36. //标题栏位置
  37. config.titleViewAlignment = XLPageTitleViewAlignmentLeft;
  38. return config;
  39. }
  40. @end