Git Product home page Git Product logo

liuageios's Introduction

六阿哥网iOS版

项目介绍

这个项目基于我写的另一个项目 BaoKanIOS 代码基础上进行开发的。经过测试后的代码会逐步更新到 BaoKanIOS ,所以学习建议参考这个项目。数据来源我的个人网站 六阿哥网

提示: 项目正在开发阶段,接口修改可能比较频繁。如果发现项目是因为接口修改报错,请重新 clone 项目即可。

AppStore

主要技术

  • tableView / scrollView 手势冲突处理
  • 主流选项卡切换控制器、加载数据方式
  • 分类栏目自定义管理、 collectionView 排序
  • 主流图片浏览器处理、各种手势、用户体验增强
  • 使用 sqlite 数据库缓存列表页、幻灯片、新闻正文、图库正文数据
  • jsswift 交互,实现正文加载图片占位和缓存处理,并添加图片点击交互
  • 集成 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 即可。

讲解文章

主流控制器切换

image

自定义栏目管理

image

性感的侧栏,无手势冲突

image

支持各种手势的图片浏览器

image

模仿网易新闻的内容正文

image

便捷修改字体,提高用户体验

image

liuageios's People

Contributors

6ag avatar

Watchers

James Cloos avatar peterwang avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.