Base_tbVC.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // Base_tbVC.h
  3. // LNManager
  4. //
  5. // Created by EchoShacolee on 2017/4/9.
  6. // Copyright © 2017年 lee. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "NetworkManager.h"
  10. #import <MBProgressHUD.h>
  11. #import "AppDelegate.h"
  12. typedef NS_ENUM(NSInteger, MyGetDataType) {
  13. //正常请求数据
  14. MyGetDataTypeNomal=0,
  15. //下拉刷新请求数据
  16. MyGetDataTypeHeaderRefresh,
  17. //上拉加载更多请求数据
  18. MyGetDataTypeFooterRefresh
  19. };
  20. typedef void(^Block)(NSDictionary * successDic);
  21. @interface Base_tbVC : UIViewController<UITableViewDataSource,UITableViewDelegate>
  22. {
  23. //正在加载的状态
  24. BOOL _IS_LOADING;
  25. }
  26. @property (nonatomic,retain)NSMutableArray * dataurce;
  27. @property(nonatomic,retain)UITableView *tableView;
  28. @property(nonatomic,strong)HolderView * holderV;
  29. @property(nonatomic,copy)BlockTypeVo block;//holderv(点击刷新)点击回调
  30. //已经reloadata
  31. -(void)getDataWithDic:(NSMutableDictionary *)mdic method:(NSString *)method;
  32. //这个只有successdic正儿八经的时候才会返回,直接用就是了,异常错误都处理了
  33. -(void)getDataWithDic:(NSMutableDictionary *)mdic method:(NSString *)method block:(Block)block;
  34. - (void)showMsgByMBWithString:(NSString *)str;//提示框mb
  35. - (void)showMsgByAlertVCWithString:(NSString *)str;
  36. @end