-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJWSortSiftBarView.h
53 lines (39 loc) · 1.59 KB
/
JWSortSiftBarView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// YISortSiftBar.h
// yiquanqiu
//
// Created by 陈经纬 on 2017/7/11.
// Copyright © 2017年 YangWeiCong. All rights reserved.
//
#import "FGBaseView.h"
@class JWSortSiftBarView;
typedef NS_ENUM(NSUInteger, JWSortViewStyle) {
JWSortViewStyleDefault, //默认
JWSortViewStyledUpAndDown //上下箭头
};
@protocol JWSortSiftBarDataSourse <NSObject>
@required
- (NSString *)menuView:(JWSortSiftBarView *)menu titleAtIndex:(NSInteger)index;
- (NSInteger)numbersOfTitlesInSortView:(JWSortSiftBarView *)menuView;
@optional
- (JWSortViewStyle)menuView:(JWSortSiftBarView *)menu styleAtIndex:(NSInteger)index;
@end
// 选中后的箭头方式
typedef NS_ENUM(NSUInteger, JWSortViewSelectedDirection) {
JWSortViewSelectedDirectionDefault,
JWSortViewSelectedDirectionUp,
JWSortViewSelectedDirectionDown
};
@protocol JWSortSiftBarDelegate <NSObject>
@optional
- (void)menuView:(JWSortSiftBarView *)menu didSelesctedIndex:(NSInteger)index currentIndex:(NSInteger)currentIndex selectedDirection:(JWSortViewSelectedDirection)selectedDirection;
@end
@interface JWSortSiftBarView : FGBaseView
@property (nonatomic,strong)UIImage *selectDireDefaultImage;///<<#name#>
@property (nonatomic,strong)UIImage *selectDireUpImage;///<name
@property (nonatomic,strong)UIImage *selectDireDownImage;///<<#name#>
@property (nonatomic,strong)UIColor *selectTextColor;///<<#name#>
@property (nonatomic,strong)UIColor *normalTextColor;///<<#name#>
@property (nonatomic, weak)id<JWSortSiftBarDataSourse> dataSource;///<<#name#>
@property (nonatomic, weak)id<JWSortSiftBarDelegate> delegate;///<<#name#>
@end