screeningSecondView.h 1.8 KB
Newer Older
曹云霄's avatar
曹云霄 committed
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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
//
//  screeningSecondView.h
//  Lighting
//
//  Created by 曹云霄 on 16/5/8.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ScreeningFirstCollectionViewCell.h"
#import "ScreeningSecondCollectionReusableView.h"

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


//UITableview
- (void)tableSelectedindex:(NSInteger)index;


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

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

@end






@interface screeningSecondView : UIView<UITableViewDelegate,UITableViewDataSource,UICollectionViewDelegate,UICollectionViewDataSource,ButtonClickActiondelegate>





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


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


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

/**
 *  筛选数据源
 */
@property (nonatomic,strong) NSArray *datasArray;


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



/**
 *  tableview选中代理
 */
@property (nonatomic,assign) id<TableviewSelectedIndexdelegate>delegate;


/**
 *  筛选按钮选中的index
 */
@property (nonatomic) NSInteger selectedIndex;



/**
 *  通过复选搜索到的总条数
 */
@property (nonatomic,assign) NSInteger totalNumber;


/**
 *  默认数据源
 */
@property (nonatomic,strong) NSMutableArray *defaultDatasArray;

@end