Coder Social home page Coder Social logo

jodkiam / baokanios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 6ag/baokanios

0.0 2.0 0.0 106.41 MB

已经上架:使用swift语言写的一款新闻资讯类的app

License: Apache License 2.0

Swift 90.25% Objective-C 2.75% Shell 4.66% CSS 0.13% HTML 1.44% JavaScript 0.61% Ruby 0.16%

baokanios's Introduction

BaoKanIOS

项目介绍

这个一款使用Swift3.0编写的资讯新闻类app,数据来自 爆侃网文

项目首页使用使用网易首页选项卡方式切换控制器,文章详情使用 UIWebView 展示文章内容,并使用js与原始iOS交互,展示图片轮播。尝试过 WKWebView ,但是不能读取本地的缓存图片,不过内存占用会减少很多,如果不需要做缓存,或者用原生 UIImageView 覆盖 img 标签内容也能使用更好的 WKWebView

图库详情使用传统新闻客户端的图片浏览器,可以隐藏/显示UI,缩放图片,保存图片,多种手势操作。

集成推送、第三方分享、第三方登录等SDK,项目代码注释清晰,适合swift新手参考。

AppStore

相关链接

使用介绍

开发环境: Xcode8.1 + Swift3.0 ,如果编译失败,请检查环境是否满足。

特别注意: clone工程后,首先需要自己使用 cocoapods 更新第三方库,并且需要手动修改图片加载第三方库中 Pods/YYCache/YYDiskCache.m 第171行代码,这是设置磁盘缓存文件的最小尺寸,如果设置为20kb,新闻正文的小图将不能缓存到磁盘。

// 原来的
return [self initWithPath:path inlineThreshold:1024 * 20];

// 修改后的
return [self initWithPath:path inlineThreshold:0];

项目结构

image

各种截图

网文资讯

image

栏目定制

image

网文图库

image

个人中心

image

许可

MIT © 六阿哥

baokanios's People

Contributors

6ag avatar

Watchers

James Cloos 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.