baseVC.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. //
  2. // baseVC.h
  3. // switchPicChat
  4. //
  5. // Created by zzl on 16/3/30.
  6. // Copyright © 2016年 zzl. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "baseNav.h"
  10. #import "dataModel.h"
  11. #define DEVICE_Width ([[UIScreen mainScreen] bounds].size.width)
  12. #define DEVICE_Height ([[UIScreen mainScreen] bounds].size.height)
  13. @interface baseVC : UIViewController
  14. @property (nonatomic, strong) baseNav* mItNav;
  15. @property (nonatomic, strong) NSString* mPageName;
  16. @property (nonatomic, strong) NSString* mTitle;
  17. @property (nonatomic, assign) BOOL mHidNarBar;
  18. - (void)addEmptView;
  19. - (void)addEmptView:(NSString*)strInfo img:(UIImage*)img;
  20. - (void)removeEmptView;
  21. //控制流程
  22. - (void)hidBackBt;
  23. - (void)backBtClicked:(UIButton*)sender;
  24. - (void)presentDismissCompletion;
  25. - (void)setRightTxt:(NSString*)str;
  26. - (void)setRightSecondeTxt:(NSString*)str;
  27. - (void)rightBtClicked:(UIButton*)sender;
  28. - (void)rightSecBtClicked:(UIButton*)sender;
  29. - (void)delayBackClicked;
  30. - (void)pushToVC:(UIViewController*)vc;
  31. //基类列表方面的
  32. @property (nonatomic, assign) BOOL mHaveHeader;
  33. @property (nonatomic, assign) BOOL mHaveFooter;
  34. @property (nonatomic, strong) UITableView* mTableView;
  35. @property (nonatomic, strong) NSMutableArray* mDataArr;
  36. @property (nonatomic, assign) int mPage;//0 1 2 3
  37. //edg 表明 上下左右的距离 和父,
  38. - (void)createTableViewWithEdg:(UIEdgeInsets)edg;//调用这个函数就好创建好上面的
  39. - (void)createJustTableView;//普通的列表,就是64开始,全部大小
  40. - (void)forcesHeaderReFresh;
  41. - (void)headerStartRefreshWithBlock:(void(^)(NSArray* all,SResBase* resb))block;
  42. - (void)headerStartRefresh;//子类需要实现,否则就直接调用了headerEndRefresh
  43. - (void)headerEndRefresh;
  44. - (void)footerStartRefreshWithBlock:(void(^)(NSArray* all,SResBase* resb))block;
  45. - (void)footerStartRefresh;//子类需要实现,否则就直接调用了footerEndRefresh
  46. - (void)footerEndRefresh;
  47. @end
  48. @interface MyUIAlertView : UIAlertView
  49. @property (nonnull,strong) id mrefObj;
  50. @end
  51. @interface MyUIActionSheet : UIActionSheet
  52. @property (nonnull,strong) id mrefObj;
  53. @end