// // ViewController.h // phoneTest // // Created by Ray on 01/09/2017. // // #import //#import "TouchLabel.h" #import "MDHTMLLabel.h" UIKIT_EXTERN const int delta; @class QLPreviewController; @interface ResultViewController : UIViewController @property (weak, nonatomic) IBOutlet UITableView *tableview; @property (weak, nonatomic) IBOutlet UIScrollView *scrollview; @property (nonatomic,strong) IBOutlet UIView *titleBar; @property (nonatomic,strong) IBOutlet UILabel *titleLabel; @property (nonatomic,strong) IBOutlet UIView *refreshHeaderBar; @property (nonatomic,strong) IBOutlet UILabel *refreshHeaderTitleLb; @property (nonatomic,strong) IBOutlet UIView *refreshFooterBar; @property (nonatomic,strong) IBOutlet UILabel *refreshFooterTitleLb; @property (weak, nonatomic) IBOutlet NSLayoutConstraint *header_top_constraint; @property (weak, nonatomic) IBOutlet NSLayoutConstraint *footer_top_constraint; @property (strong, nonatomic) NSMutableDictionary* content_layout; @property (strong, nonatomic) NSMutableArray* content_action; @property (strong, nonatomic) NSMutableDictionary* content_data; @property (strong, nonatomic) NSMutableArray* content_menu; @property (strong, nonatomic) MDHTMLLabel *label; @property (strong, nonatomic) NSString *download_query; @property (nonatomic,copy) NSString *documentPath; @property (nonatomic,assign) NSInteger offset; @property (nonatomic,strong) NSDictionary *params; @property (nonatomic,strong) QLPreviewController *quickLook; - (void)setQueryParams:(NSDictionary *)params; //@property (strong, nonatomic)UITapGestureRecognizer* labelTap; // //@property (strong, nonatomic)UITapGestureRecognizer* cellDoubleTap; - (void)loadContent; /** * 0: init load * 1: refresh * 2: load more */ - (void)loadContentWithOption:(int)option Complete:(void (^)(int result,int count))finish; - (void)updateTableFrame; - (void)setupNavigationBar; - (NSInteger)resultItemCount; - (void)resize_tableHeader; - (void)Export:(NSString*)url; - (void)save; - (void)downloadItemClick:(UIBarButtonItem *)sender; -(void)cellDoubleTapAction:(UIGestureRecognizer*)gestureRecognizer; - (void)presses3DTouchForIndexPath:(NSIndexPath *)indexPath; @end