123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // Base_tbVC.h
- // LNManager
- //
- // Created by EchoShacolee on 2017/4/9.
- // Copyright © 2017年 lee. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import "NetworkManager.h"
- #import <MBProgressHUD.h>
- #import "AppDelegate.h"
- typedef NS_ENUM(NSInteger, MyGetDataType) {
- //正常请求数据
- MyGetDataTypeNomal=0,
- //下拉刷新请求数据
- MyGetDataTypeHeaderRefresh,
- //上拉加载更多请求数据
- MyGetDataTypeFooterRefresh
- };
- typedef void(^Block)(NSDictionary * successDic);
- @interface Base_tbVC : UIViewController<UITableViewDataSource,UITableViewDelegate>
- {
- //正在加载的状态
- BOOL _IS_LOADING;
- }
- @property (nonatomic,retain)NSMutableArray * dataurce;
- @property(nonatomic,retain)UITableView *tableView;
- @property(nonatomic,strong)HolderView * holderV;
- @property(nonatomic,copy)BlockTypeVo block;//holderv(点击刷新)点击回调
- //已经reloadata
- -(void)getDataWithDic:(NSMutableDictionary *)mdic method:(NSString *)method;
- //这个只有successdic正儿八经的时候才会返回,直接用就是了,异常错误都处理了
- -(void)getDataWithDic:(NSMutableDictionary *)mdic method:(NSString *)method block:(Block)block;
- - (void)showMsgByMBWithString:(NSString *)str;//提示框mb
- - (void)showMsgByAlertVCWithString:(NSString *)str;
- @end
|