screeningSecondView.h 1.8 KB
Newer Older
曹云霄's avatar
曹云霄 committed
1 2 3 4 5 6 7 8 9
//
//  screeningSecondView.h
//  Lighting
//
//  Created by 曹云霄 on 16/5/8.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
10 11
#import "ScreeningFirstCollectionViewCell.h"
#import "ScreeningSecondCollectionReusableView.h"
曹云霄's avatar
曹云霄 committed
12 13 14 15 16 17

/**
 *  tableview模块的选中
 */
@protocol TableviewSelectedIndexdelegate <NSObject>

18 19

//UITableview
曹云霄's avatar
曹云霄 committed
20 21
- (void)tableSelectedindex:(NSInteger)index;

22 23 24 25 26 27 28

//UICollectionView选中后返回所有被选中的类型
- (void)collectionSelectedindexWithStyleCode:(NSString *)styleCode withCategories:(NSString *)categoriesCode withSpace:(NSString *)spaceCode withMaterial:(NSString *)materialCode withPrice:(NSString *)priceTitle;

//显示筛选结果
- (void)ShowScreeningResponse;

曹云霄's avatar
曹云霄 committed
29 30 31
@end


32 33 34 35 36




@interface screeningSecondView : UIView<UITableViewDelegate,UITableViewDataSource,UICollectionViewDelegate,UICollectionViewDataSource,ButtonClickActiondelegate>
曹云霄's avatar
曹云霄 committed
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58





/**
 *  筛选tableview
 */
@property (weak, nonatomic) IBOutlet UITableView *screeningTableview;


/**
 *  筛选collectionView
 */
@property (weak, nonatomic) IBOutlet UICollectionView *screeningCollectionView;


/**
 *  筛选layout
 */
@property (weak, nonatomic) IBOutlet UICollectionViewFlowLayout *screeningLayout;

曹云霄's avatar
曹云霄 committed
59
/**
曹云霄's avatar
曹云霄 committed
60
 *  筛选数据源
曹云霄's avatar
曹云霄 committed
61 62 63 64 65 66 67 68 69 70 71
 */
@property (nonatomic,strong) NSArray *datasArray;


/**
 *  筛选结果显示
 */
@property (weak, nonatomic) IBOutlet UIButton *screeningResultButton;



曹云霄's avatar
曹云霄 committed
72 73 74 75
/**
 *  tableview选中代理
 */
@property (nonatomic,assign) id<TableviewSelectedIndexdelegate>delegate;
曹云霄's avatar
曹云霄 committed
76 77


78 79 80 81
/**
 *  筛选按钮选中的index
 */
@property (nonatomic) NSInteger selectedIndex;
曹云霄's avatar
曹云霄 committed
82 83 84



85 86 87 88
/**
 *  通过复选搜索到的总条数
 */
@property (nonatomic,assign) NSInteger totalNumber;
曹云霄's avatar
曹云霄 committed
89 90


91 92 93 94
/**
 *  默认数据源
 */
@property (nonatomic,strong) NSMutableArray *defaultDatasArray;
曹云霄's avatar
曹云霄 committed
95

曹云霄's avatar
曹云霄 committed
96
@end