PopoverViewController.h 1.26 KB
//
//  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