ResultViewController.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. @interface ResultViewController : UIViewController<UIPopoverPresentationControllerDelegate>
  13. @property (weak, nonatomic) IBOutlet UITableView *tableview;
  14. @property (weak, nonatomic) IBOutlet UIScrollView *scrollview;
  15. @property (nonatomic,strong) IBOutlet UIView *titleBar;
  16. @property (nonatomic,strong) IBOutlet UILabel *titleLabel;
  17. @property (nonatomic,strong) IBOutlet UIView *refreshHeaderBar;
  18. @property (nonatomic,strong) IBOutlet UILabel *refreshHeaderTitleLb;
  19. @property (nonatomic,strong) IBOutlet UIView *refreshFooterBar;
  20. @property (nonatomic,strong) IBOutlet UILabel *refreshFooterTitleLb;
  21. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *header_top_constraint;
  22. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *footer_top_constraint;
  23. @property (strong, nonatomic) NSMutableDictionary* content_layout;
  24. @property (strong, nonatomic) NSMutableArray* content_action;
  25. @property (strong, nonatomic) NSMutableDictionary* content_data;
  26. @property (strong, nonatomic) NSMutableArray* content_menu;
  27. @property (strong, nonatomic) MDHTMLLabel *label;
  28. @property (strong, nonatomic) NSString *download_query;
  29. @property (nonatomic,assign) NSInteger offset;
  30. @property (nonatomic,strong) NSDictionary *params;
  31. - (void)setQueryParams:(NSDictionary *)params;
  32. //@property (strong, nonatomic)UITapGestureRecognizer* labelTap;
  33. //
  34. //@property (strong, nonatomic)UITapGestureRecognizer* cellDoubleTap;
  35. /**
  36. * 0: init load
  37. * 1: refresh
  38. * 2: load more
  39. */
  40. - (void)loadContentWithOption:(int)option Complete:(void (^)(int result,int count))finish;
  41. - (void)updateTableFrame;
  42. - (void)setupNavigationBar;
  43. - (NSInteger)resultItemCount;
  44. -(void) resize_tableHeader;
  45. @end