热更新demo

channelContentListController.h 1.5KB

    // // UITestSuperController.h // ThePaperDemo // // Created by Scar on 14-9-15. // Copyright (c) 2014年 scar1900. All rights reserved. // #import <UIKit/UIKit.h> @interface channelContentListController : TPTableViewController @property(nonatomic, strong)NSString *isUseSystemFont; - (void)selectItemBlock:(void(^)(id listOBJ))block; @property(nonatomic, strong)NSMutableArray *dataList; //数据源 - (void)pageChangeBegin:(NSInteger)index; @property(nonatomic, strong)NSString* currentIndex; @property(nonatomic, strong)NSMutableArray *cellHeightList; @property(nonatomic, strong)NSString *nodeId; @property(nonatomic, strong)NSString *dataKey; //解析数据关键字 @property(nonatomic, strong)Class dataClass; @property(nonatomic, strong)NSMutableArray *titleHeightList; @property(nonatomic, strong)NSMutableArray *hotInfoHeightList; @property(nonatomic, strong)NSString *imagePath; @property(nonatomic, assign)BOOL needReload; - (void)getRefreshDataFromDic:(NSDictionary*)sourceDic sourceKey:(NSString*)sourceKey contentClass:(Class)contentClass; //更新数据源公有方法 - (void)scrollTableViewToTop; - (void)saveRemoteDataToCoreData:(id)resData;//将网络刷新数据保存数据库(覆盖原有数据) - (void)saveQaListRemoteDataToCoreData:(id)resData;//用于热追问 //- (void)setLineSpace:(UILabel*)label text:(NSString*)text linceSpace:(NSInteger)lineSpace; - (void)setTableDataSource:(NSMutableArray*)list; - (void)setTableDataSourceWithoutImage:(NSMutableArray*)list; - (void)reloadWithFontChange; @end