这个项目基于我写的另一个项目 BaoKanIOS 代码基础上进行开发的。经过测试后的代码会逐步更新到 BaoKanIOS ,所以学习建议参考这个项目。数据来源我的个人网站 六阿哥网 。
提示: 项目正在开发阶段,接口修改可能比较频繁。如果发现项目是因为接口修改报错,请重新 clone
项目即可。
tableView
/scrollView
手势冲突处理- 主流选项卡切换控制器、加载数据方式
- 分类栏目自定义管理、
collectionView
排序 - 主流图片浏览器处理、各种手势、用户体验增强
- 使用
sqlite
数据库缓存列表页、幻灯片、新闻正文、图库正文数据 js
与swift
交互,实现正文加载图片占位和缓存处理,并添加图片点击交互- 集成
JPush
实现各种远程推送,集成ShareSDK
实现社交分享、第三方登录
- LiuAGeIOS 项目主目录
- ------------ Resource 资源目录
- ------------ Classes 项目所有类文件
- ---------------------- Application 应用级别类
- ---------------------- Vendor 第三方库
- ---------------------- Categories 分类
- ---------------------- Model 公共模型
- ---------------------- Utils 工具类
- ---------------------- Module 模块目录
- ------------------------------------- Main 主模块
- ------------------------------------- News 资讯模块
- ------------------------------------- Profile 个人中心模块
XCode7.3 + swift2.2 ,如果下载项目后,编译失败,请检查 XCode
版本是否满足。
资讯正文部分的图片是用 YYWebImage
进行缓存管理的,而由于 YYWebImage
的缓存策略原因,低于 20kb
的文件不会直接存文件,所以我们必须要修改框架原文件。修改YYCache
-> YYDiskCache.m
的第 171
行,将 1024 * 20
修改为 0
即可。