ResultViewController.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // ViewController.h
  3. // phoneTest
  4. //
  5. // Created by Ray on 01/09/2017.
  6. //
  7. //
  8. #import <UIKit/UIKit.h>
  9. //#import "TouchLabel.h"
  10. #import "MDHTMLLabel.h"
  11. UIKIT_EXTERN const int delta;
  12. @class QLPreviewController;
  13. @interface ResultViewController : UIViewController<UIPopoverPresentationControllerDelegate>
  14. @property (weak, nonatomic) IBOutlet UITableView *tableview;
  15. @property (weak, nonatomic) IBOutlet UIScrollView *scrollview;
  16. @property (nonatomic,strong) IBOutlet UIView *titleBar;
  17. @property (nonatomic,strong) IBOutlet UILabel *titleLabel;
  18. @property (nonatomic,strong) IBOutlet UIView *refreshHeaderBar;
  19. @property (nonatomic,strong) IBOutlet UILabel *refreshHeaderTitleLb;
  20. @property (nonatomic,strong) IBOutlet UIView *refreshFooterBar;
  21. @property (nonatomic,strong) IBOutlet UILabel *refreshFooterTitleLb;
  22. @property (nonatomic,strong) IBOutlet UIActivityIndicatorView *loadingIndicator;
  23. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *header_top_constraint;
  24. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *footer_top_constraint;
  25. @property (strong, nonatomic) NSMutableDictionary* content_layout;
  26. @property (strong, nonatomic) NSMutableArray* content_action;
  27. @property (strong, nonatomic) NSMutableDictionary* content_data;
  28. @property (strong, nonatomic) NSMutableArray* content_menu;
  29. @property (strong, nonatomic) MDHTMLLabel *label;
  30. @property (strong, nonatomic) NSString *download_query;
  31. @property (nonatomic,copy) NSString *documentPath;
  32. @property (nonatomic,assign) NSInteger offset;
  33. @property (nonatomic,strong) NSDictionary *params;
  34. @property (nonatomic,strong) QLPreviewController *quickLook;
  35. - (void)setQueryParams:(NSDictionary *)params;
  36. //@property (strong, nonatomic)UITapGestureRecognizer* labelTap;
  37. //
  38. //@property (strong, nonatomic)UITapGestureRecognizer* cellDoubleTap;
  39. - (void)loadContent;
  40. /**
  41. * 0: init load
  42. * 1: refresh
  43. * 2: load more
  44. */
  45. - (void)loadContentWithOption:(int)option Complete:(void (^)(int result,int count))finish;
  46. - (void)updateTableFrame;
  47. - (void)setupNavigationBar;
  48. - (NSInteger)resultItemCount;
  49. - (void)resize_tableHeader;
  50. - (void)Export:(NSString*)url;
  51. - (void)save;
  52. - (void)downloadItemClick:(UIBarButtonItem *)sender;
  53. -(void)cellDoubleTapAction:(UIGestureRecognizer*)gestureRecognizer;
  54. - (void)presses3DTouchForIndexPath:(NSIndexPath *)indexPath;
  55. @end