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
//
// PopoverViewController.h
// Lighting
//
// Created by 曹云霄 on 16/5/9.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "BaseViewController.h"
/**
* 点击cell代理方法,返回indexpath.row
*/
@protocol ReturnTableviewcellIndexpathdelegate <NSObject>
@optional
/**
* 选中筛选条件对象typecode
*
* @param index NSString
*/
- (void)returnCellindexpathwithrow:(NSString *)type withCellTitle:(NSString *)title withSelected:(NSInteger)selected;
/**
* 选中筛选对象的index
*
* @param selectedIndex NSInteger
*/
- (void)returnWithIndexSelected:(NSInteger)selectedIndex;
@end
@interface PopoverViewController : BaseViewController
/**
* 传入数据源
*/
@property (nonatomic,strong) NSArray *datasArray;
/**
* 代理
*/
@property (nonatomic,assign) id<ReturnTableviewcellIndexpathdelegate>delegate;
/**
* 传入CGsize
*/
@property (nonatomic,assign) CGSize contentSize;
/**
* 判断显示图片还是文字
*/
@property (nonatomic,assign) BOOL isPictures;
/**
* 传入身份iD表示当前是风格还是房型
*/
@property (nonatomic,assign) NSInteger selectedindex;
/**
* 是否传入数据源,结构为内嵌字符串
*/
@property (nonatomic,assign) BOOL isString;
@end