PopoverViewController.h 1.26 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//
//  PopoverViewController.h
//  Lighting
//
//  Created by 曹云霄 on 16/5/9.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "BaseViewController.h"


/**
 *  点击cell代理方法,返回indexpath.row
 */
@protocol ReturnTableviewcellIndexpathdelegate <NSObject>


勾芒's avatar
勾芒 committed
18 19
@optional

勾芒's avatar
勾芒 committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33
/**
 *  选中筛选条件对象typecode
 *
 *  @param index NSString
 */
- (void)returnCellindexpathwithrow:(NSString *)Type WithcellTitle:(NSString *)title Withselected:(NSInteger)Selected;


/**
 *  选中筛选对象的index
 *
 *  @param selectedIndex NSInteger
 */
- (void)returnWithIndexSelected:(NSInteger)selectedIndex;
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56

@end

@interface PopoverViewController : BaseViewController



/**
 *  传入数据源
 */
@property (nonatomic,strong) NSArray *datasArray;

/**
 *  代理
 */
@property (nonatomic,assign) id<ReturnTableviewcellIndexpathdelegate>delegate;


/**
 *  传入CGsize
 */
@property (nonatomic,assign) CGSize contentSize;

勾芒's avatar
勾芒 committed
57 58 59 60 61 62 63 64 65 66 67
/**
 *  判断显示图片还是文字
 */
@property (nonatomic,assign) BOOL isPictures;

/**
 *  传入身份iD表示当前是风格还是房型
 */
@property (nonatomic,assign) NSInteger Selectedindex;


勾芒's avatar
勾芒 committed
68 69 70 71 72
/**
 *  是否传入数据源,结构为内嵌字符串
 */
@property (nonatomic,assign) BOOL isString;

勾芒's avatar
勾芒 committed
73

74
@end