UITableViewCell+XL.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // UITableViewCell+XL.h
  3. // amigo
  4. //
  5. // Created by wujian on 2017/8/29.
  6. // Copyright © 2017年 xiaolian.Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #define SCREEN_SCALE [[UIScreen mainScreen] scale]
  10. #define HalfPxHeight (SCREEN_SCALE == 3)? 0.6667:0.5
  11. @interface UITableViewCell (XL)
  12. - (void)addHeaderLineWithColor:(UIColor *)tColor lineX:(float)tx;
  13. - (void)addHeaderLineWithColor:(UIColor *)tColor leadingeX:(float)lx trailingX:(float)tx;
  14. - (void)addHeaderLineWithColor:(UIColor *)tColor leadingeX:(float)lx trailingX:(float)tx lineHeight:(float)lh;
  15. - (void)addHeaderLineWithColor:(UIColor *)tColor lineX:(float)tx cellHeight:(float)ht;
  16. - (void)addfooterLineWithColor:(UIColor *)tColor lineX:(float)tx;
  17. - (void)addfooterLineWithColor:(UIColor *)tColor leadingeX:(float)lx trailingX:(float)tx;
  18. - (void)addfooterLineWithColor:(UIColor *)tColor leadingeX:(float)lx trailingX:(float)tx lineHeight:(float)lh;
  19. - (void)addfooterLineWithColor:(UIColor *)tColor lineX:(float)tx cellHeight:(float)ht;
  20. - (void)addfooterLineWithColor:(UIColor *)tColor lineX:(float)tx cellHeight:(float)ht lineHeight:(float)lx;
  21. - (void)addLinesOnHeaderAndFooterWithColor:(UIColor *)tColor;
  22. - (void)cleanLinesOnHeaderAndFooter;
  23. - (void)setHeaderLineHiden:(BOOL)isHiden;
  24. - (void)setFooterLineHiden:(BOOL)isHiden;
  25. - (void)setNormalBackgroundViewWithColor:(UIColor *)tColor;
  26. - (void)setSelectedBackgroundViewWithColor:(UIColor *)tColor;
  27. @end