Coder Social home page Coder Social logo

iossf's Introduction

SegmentFault

SegmentFault为开发者提供高效的解决问题平台,网址是:http://segmentfault.com/http://sf.gg/。 这个工程是SegmentFault的iOS客户端,完全开源。 架构不断进化ing

特点

SF iOS App使用URLManager,通过URL Scheme的方式管理ViewController,做到VC松耦合,不依赖。 使用Kache作为缓存控件,用来缓存网络数据。 以上两个控件是该项目自主研发,旨在打造轻量、好用的iOS开发控件。

开发

这个工程使用Submodule管��理所有第三方控件。目录结构如下:

####iOSSF/SegmentFault/Support/ #####|__ AFNetworking #####|__ JSONKit #####|__ Kache (自主开发的缓存控件) #####|__ SlimeRefresh #####|__ URLManager (自主开发的NavigationViewController,用URL Scheme管理ViewControllers)

建议你使用SourceTree来管理工程。使用SourceTree Clone一个工程会自动加载Submodule。

如果你使用命令行Clone工程,请运行如下命令,加载Submodule

Cloning into 'iOSSF'...
remote: Counting objects: 519, done.
remote: Compressing objects: 100% (376/376), done.
remote: Total 519 (delta 272), reused 367 (delta 120)
Receiving objects: 100% (519/519), 364.74 KiB | 180 KiB/s, done.
Resolving deltas: 100% (272/272), done.

# cd iOSSF

# git submodule init

Submodule 'SegmentFault/Support/AFNetworking' (https://github.com/AFNetworking/AFNetworking.git) registered for path 'SegmentFault/Support/AFNetworking'
Submodule 'SegmentFault/Support/JSONKit' (https://github.com/johnezang/JSONKit.git) registered for path 'SegmentFault/Support/JSONKit'
Submodule 'SegmentFault/Support/Kache' (https://github.com/gaosboy/kache.git) registered for path 'SegmentFault/Support/Kache'
Submodule 'SegmentFault/Support/SlimeRefresh' (https://github.com/dbsGen/SlimeRefresh.git) registered for path 'SegmentFault/Support/SlimeRefresh'
Submodule 'SegmentFault/Support/URLManager' (https://github.com/gaosboy/urlmanager.git) registered for path 'SegmentFault/Support/URLManager'

# git submodule update

Cloning into 'SegmentFault/Support/AFNetworking'...
remote: Counting objects: 4796, done.
remote: Compressing objects: 100% (1613/1613), done.
remote: Total 4796 (delta 3278), reused 4541 (delta 3149)
Receiving objects: 100% (4796/4796), 1.34 MiB | 12 KiB/s, done.
Resolving deltas: 100% (3278/3278), done.
Submodule path 'SegmentFault/Support/AFNetworking': checked out 'a146a3bf66aa2b6bfee1f38fe24f5d3cd37de65a'
Cloning into 'SegmentFault/Support/JSONKit'...
remote: Counting objects: 263, done.
remote: Compressing objects: 100% (147/147), done.
remote: Total 263 (delta 123), reused 244 (delta 114)
Receiving objects: 100% (263/263), 160.79 KiB | 13 KiB/s, done.
Resolving deltas: 100% (123/123), done.
Submodule path 'SegmentFault/Support/JSONKit': checked out '82157634ca0ca5b6a4a67a194dd11f15d9b72835'
Cloning into 'SegmentFault/Support/Kache'...
remote: Counting objects: 39, done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 39 (delta 7), reused 32 (delta 6)
Unpacking objects: 100% (39/39), done.
Submodule path 'SegmentFault/Support/Kache': checked out '926b791ca2c6832070c64632acb92ce76ddd8fc8'
Cloning into 'SegmentFault/Support/SlimeRefresh'...
remote: Counting objects: 541, done.
remote: Compressing objects: 100% (325/325), done.
remote: Total 541 (delta 245), reused 506 (delta 210)
Receiving objects: 100% (541/541), 394.46 KiB | 9 KiB/s, done.
Resolving deltas: 100% (245/245), done.
Submodule path 'SegmentFault/Support/SlimeRefresh': checked out '7b51e1b88551d2a9eb4cea6f4003cf3511091871'
Cloning into 'SegmentFault/Support/URLManager'...
remote: Counting objects: 69, done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 69 (delta 28), reused 51 (delta 16)
Unpacking objects: 100% (69/69), done.
Submodule path 'SegmentFault/Support/URLManager': checked out '64319dd7c6f3e26917981025cc0088bd87d9bf9d'

iossf's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iossf's Issues

QuestionList Table 滑动略卡

测试和自己写的NavgationController有点,继承自UIViewController滑动快很多。

然后我去看看那些类。

JSONKit库在xcode 6.1上无法编译通过

/Users/test/Documents/iOSSF/SegmentFault/Support/JSONKit/JSONKit.m:680:5: Assignment to Objective-C's isa is deprecated in favor of object_setClass()

/Users/test/Documents/iOSSF/SegmentFault/Support/JSONKit/JSONKit.m:931:5: Assignment to Objective-C's isa is deprecated in favor of object_setClass()

贴链接出现的对话框问题

    evn  : arch + awesome + chrome

问题: 我在给链接时,点击链接那个按钮出现,出现的对话框出现问题。

具体表现: 在左上脚展示了一部分,不能看到全部的对话框(这是这次更新没处理好的事情吧)

效果展示:
_2014-09-18_13 17 23

总: 在贴链接,或者贴图时,点击它们的按钮,都不能出来相应的操作"窗体" (更新之前没有这个情况)

URLManager submodule版本有错

不能checkout,原因是URLManager的信息是164fa2f,但是在github的库中没有这个提交。

请把这个commit提交到github上 。

登录加回调

api支持成功后返回json
app支持跳回登录前一页,刷新

关于SFSlideNavViewController中loadedRootViewControllers的问题

Hi! 首先感谢gaosboy等前辈能将这样优秀的客户端开源~

我是ios新手,最近在研读学习iossf的代码。在SFSlideNavViewController中看到一个property loadedRootViewController,结合上下文看这个property似乎只在viewDidLoad中出现,并且也只是初始化赋值操作。注释掉那段代码后app似乎也能正常运行,于是就不是很明白这个property的作用,有什么其他的考虑么?

thx~~

版本太旧

这个3年前的版本了吧 有没有最近架构可以供参考的

Xcode模拟器运行报错

错误信息如下:
2016-01-22 13:31:23.497 SegmentFault[976:32193] *** Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.29.5/UIApplication.m:3299

运行环境Xcode7.1 模拟器6s iOS9.1

增加退出

在侧边栏加一个退出按钮,点了弹提示,确认

代码问题

代码下下来缺少很多文件,红色的。

文件下不下来

Clone of 'git://github.com/innerfence/google-toolbox-for-mac.git' into submodule path 'SegmentFault/Support/GTM' failed

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.