BaseListViewController.h 1.21 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
//
//  BaseListViewController.h
//  RealEstateManagement
//
//  Created by Javen on 16/9/8.
//  Copyright © 2016年 上海勾芒信息科技. All rights reserved.
//


#import "BaseViewController.h"
#import "UITableView+Addtions.h"
#import "UIScrollView+EmptyDataSet.h"
Sandy's avatar
Sandy committed
13 14
#import "MJRefresh.h"

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
@interface BaseListViewController : BaseViewController<UITableViewDelegate, UITableViewDataSource, DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
@property (weak, nonatomic) IBOutlet UITableView *tableView;

@property (nonatomic, strong) NSMutableArray *arrData;

/**
 *  分页加载时记录当前页数
 */
@property (nonatomic, assign) NSInteger page;
/**
 *  分页加载一页大小
 */
@property (nonatomic, assign) NSInteger pageSize;
/**
 *  启用分页加载模式,还需要手动调用httpRequest
 */
- (void)paggingMode;
/**
 *  请求数据要重写这个方法,在这个方法里面请求数据,获取数据后调用showData方法,展示获取到的数据
 */
- (void)httpRequest;
/**
 *  选中列表cell之后
 */
- (void)listDidSelect:(id)model;

/**
 *  刷新tableView
 */
- (void)listTableViewReloadData;
- (void)listTableViewReloadDataWithNewRecord:(NSArray *)newRecord;
/**
 *  下拉刷新
 */
- (void)refresh;
@end