mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-10-29 12:00:47 -04:00
39 lines
1006 B
Objective-C
39 lines
1006 B
Objective-C
//
|
|
// FLEXTableContentHeaderCell.h
|
|
// FLEX
|
|
//
|
|
// Created by Peng Tao on 15/11/26.
|
|
// Copyright © 2015年 f. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
typedef NS_ENUM(NSUInteger, FLEXTableColumnHeaderSortType) {
|
|
FLEXTableColumnHeaderSortTypeNone = 0,
|
|
FLEXTableColumnHeaderSortTypeAsc,
|
|
FLEXTableColumnHeaderSortTypeDesc,
|
|
};
|
|
|
|
NS_INLINE FLEXTableColumnHeaderSortType FLEXNextTableColumnHeaderSortType(
|
|
FLEXTableColumnHeaderSortType current) {
|
|
switch (current) {
|
|
case FLEXTableColumnHeaderSortTypeAsc:
|
|
return FLEXTableColumnHeaderSortTypeDesc;
|
|
case FLEXTableColumnHeaderSortTypeNone:
|
|
case FLEXTableColumnHeaderSortTypeDesc:
|
|
return FLEXTableColumnHeaderSortTypeAsc;
|
|
}
|
|
|
|
return FLEXTableColumnHeaderSortTypeNone;
|
|
}
|
|
|
|
@interface FLEXTableColumnHeader : UIView
|
|
|
|
@property (nonatomic) NSInteger index;
|
|
@property (nonatomic, readonly) UILabel *titleLabel;
|
|
|
|
@property (nonatomic) FLEXTableColumnHeaderSortType sortType;
|
|
|
|
@end
|
|
|