FLEXTableColumnHeader.h 1006 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // FLEXTableContentHeaderCell.h
  3. // FLEX
  4. //
  5. // Created by Peng Tao on 15/11/26.
  6. // Copyright © 2015年 f. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSUInteger, FLEXTableColumnHeaderSortType) {
  10. FLEXTableColumnHeaderSortTypeNone = 0,
  11. FLEXTableColumnHeaderSortTypeAsc,
  12. FLEXTableColumnHeaderSortTypeDesc,
  13. };
  14. NS_INLINE FLEXTableColumnHeaderSortType FLEXNextTableColumnHeaderSortType(
  15. FLEXTableColumnHeaderSortType current) {
  16. switch (current) {
  17. case FLEXTableColumnHeaderSortTypeAsc:
  18. return FLEXTableColumnHeaderSortTypeDesc;
  19. case FLEXTableColumnHeaderSortTypeNone:
  20. case FLEXTableColumnHeaderSortTypeDesc:
  21. return FLEXTableColumnHeaderSortTypeAsc;
  22. }
  23. return FLEXTableColumnHeaderSortTypeNone;
  24. }
  25. @interface FLEXTableColumnHeader : UIView
  26. @property (nonatomic) NSInteger index;
  27. @property (nonatomic, readonly) UILabel *titleLabel;
  28. @property (nonatomic) FLEXTableColumnHeaderSortType sortType;
  29. @end