iOSApp推荐iOS开发iOS 开发

知乎日报iOS

2016-08-19  本文已影响1045人  zhongwuzw

Disclaimer - 声明
Zhihu is a trademark of Zhihu. Inc. This app is not created nor endorsed by Zhihu Inc. All the information and content accessible through Zhihu Daily Purify are subject to Zhihu's copyright and terms of use. This is a free app and does not charge for anything. All content are available for free from Zhihu.

『知乎』是 知乎. Inc 的注册商标。本软件与其代码非由知乎创作或维护。软件中所包含的信息与内容皆违反版权与知乎用户协议。它是一个免费软件,使用它不收取您任何费用。其中的所有内容均可在知乎获取。

前言

最近工作工作不是很忙,所以准备开发项目练练手,之前发现了这个知乎日报API,其提供了知乎日报的API地址,所以决定开发知乎日报。先上Github地址,欢迎Star、Issues、Pull Request

展示

1.应用主页部分:

image

2.新闻详细页部分:


@interface HomePageDataManager : NSObject

@property (nonatomic, strong) NSMutableArray<NewsListResponseModel *> *homePageArray;
@property (nonatomic, copy) NSArray<TopNewsResponseModel *> *topNewsArray;

SYNTHESIZE_SINGLETON_FOR_CLASS_HEADER(HomePageDataManager)
- (NSURLSessionDataTask *)getLatestNewsWithSuccess:(HttpClientSuccessBlock)success
                                              fail:(HttpClientFailureBlock)fail;
- (NSURLSessionDataTask *)getPreviousNewsWithSuccess:(HttpClientSuccessBlock)success
                                              fail:(HttpClientFailureBlock)fail;
- (NSInteger)numberofSections;
- (NSInteger)numberofRowsInSection:(NSInteger)section;
- (NewsResponseModel *)modelForRowAtIndexPath:(NSIndexPath *)indexPath;
- (NSString *)headerTitleForSection:(NSInteger)section;
- (NSInteger)getPreviousNewsWithSection:(NSInteger *)section currentID:(NSInteger)currentID;
- (NSInteger)getNextNewsWithSection:(NSInteger *)section currentID:(NSInteger)currentID;

@end

3.主题日报部分:

4.夜间部分:

5.设置-移动网络不下载图片

Features - 特性

TODO - 后续实现

上一篇 下一篇

猜你喜欢

热点阅读