Git Product home page Git Product logo

mvvm_rac's Introduction

MVVM_RAC

reactiveCocoa mvvm

by chendajie 2017-2018

基于reactiveCocoa实现的mvvm

前言

在做了很长一段时间ios基于MVC模式的开发后,最后都疲于维护自己或者别人写的代码。一直在探究一种更有效清晰易于维护的开发模式。在经过对其他几种现有模式进行实际考察后,最后下定决心对现有一些项目采取MVVM的开发模式,在参考别人框架的基础上,在最近一个项目的实际的mvvm开发过程中总结了一些经验,与大家分享下,也希望不足之处大家多提意见。

核心**:各模块各司其职,模块解耦。

工程简介

有关MVVM的介绍大家自己上网搜索,在此只介绍我自己关于MVVM具体实现的一种参考(借鉴了网上其他大神的一些写法)。除了封装reactiveCocoa之外,还封装了一些常用框架,如afnetworking,yycache等。便于在该基础工程上快速进行实际开发。

1.封装afnetworking,使用单例子处理网络请求。

2.结合afnetworking与reactiveCocoa实现网络请求。

3.封装yycache,实现网络缓存

4.绑定view与model获取,减轻controller工作,解耦网络请求与controller

5.模块化view与网络请求,提高模块复用性

mvvm_rac's People

Contributors

airpig2011 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.