Skip to content

Update readme #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Clone 代码后,初次执行前,需要双击运行根目录下的`bootstrap`脚本。这个过程涉及到下载依赖,可能会有点久,需耐心等待。

**Tip:由于用到了 submodule,所以必需要把 git 仓库 clone 到本地,而不是只点击‘下载’按钮下载 zip 文件!!!**
** Tip:由于用到了 submodule,所以必需要把 git 仓库 clone 到本地,而不是只点击‘下载’按钮下载 zip 文件!!!**

精彩项目|任务管理|项目文档|代码托管|趣味冒泡
------------ | ------------- | ------------| ------------| ------------
Expand All @@ -16,7 +16,8 @@ Clone 代码后,初次执行前,需要双击运行根目录下的`bootstrap`


####下面介绍一下文件的大概目录先:
.
```
.
├── Coding_iOS
│   ├── Models:数据类
│   ├── Views:视图类
Expand Down Expand Up @@ -57,15 +58,16 @@ Clone 代码后,初次执行前,需要双击运行根目录下的`bootstrap`
│      ├── XTSegmentControl
│    └── iCarousel
└── Pods:项目使用了[CocoaPods](http://code4app.com/article/cocoapods-install-usage)这个类库管理工具
```



####再说下项目的启动流程:
#### 再说下项目的启动流程:
在AppDelegate的启动方法中,先设置了一下Appearance的样式,然后根据用户的登录状态选择是去加载登录页面LoginViewController,还是登录后的RootTabViewController页面。

RootTabViewController继承自第三方库[RDVTabBarController](https://github.com/robbdimitrov/RDVTabBarController)。在RootTabViewController里面依次加载了Project_RootViewController、MyTask_RootViewController、Tweet_RootViewController、Message_RootViewController、Me_RootViewController五个RootViewController,后续的页面跳转都是基于这几个RootViewController引过去的。

####项目里面还有些需要注意的点
#### 项目里面还有些需要注意的点
- Coding_NetAPIManager:基本上app的所有请求接口都放在了这里。网络请求使用的是[AFNetworking](https://github.com/AFNetworking/AFNetworking)库,与服务器之间的数据交互格式用的都是json(与[Coding](https://coding.net)使用的api一致)。

- 关于推送:刚开始是用的[友盟推送](http://www.umeng.com/),后来又改用了[腾讯信鸽](http://xg.qq.com/),因为要兼顾旧版本app的推送,所以服务器是同时保留了两套推送。但是为了确保新版本的app不同时收到双份相同的推送消息,所以当前代码里还存留了友盟的sdk,用于解除推送token与友盟Alias的绑定。
Expand All @@ -78,7 +80,7 @@ RootTabViewController继承自第三方库[RDVTabBarController](https://github.c

- 关于如何正确显示冒泡的内容:api返回的数据里面,冒泡内容都是html格式,需要做一下预处理;其实私信、讨论里面的内容也是html。解析html的类名是HtmlMediaItem,它是先用[hpple](https://github.com/topfunky/hpple)对html进行了解析,然后把对应的media元素和对应的位置做一个存储,显示的时候便可以根据需要来显示了。

####最后说下[CocoaPods](http://cocoapods.org/)里面用到的第三方类库
#### 最后说下[CocoaPods](http://cocoapods.org/)里面用到的第三方类库
- [SDWebImage](https://github.com/rs/SDWebImage):图片加载
- [TTTAttributedLabel](https://github.com/TTTAttributedLabel/TTTAttributedLabel):富文本的label,可点击链接
- [RegexKitLite](https://github.com/wezm/RegexKitLite):正则表达式
Expand All @@ -90,7 +92,7 @@ RootTabViewController继承自第三方库[RDVTabBarController](https://github.c
- [BlocksKit](https://github.com/zwaldowski/BlocksKit):block工具包。将很多需要用delegate实现的方法整合成了block的形式
- [ReactiveCocoa](https://github.com/ReactiveCocoa/ReactiveCocoa):基于响应式编程思想的oc实践(是个好东西呢)

####License
#### License
Coding is available under the MIT license. See the LICENSE file for more info.


Expand Down