• Stars
    star
    329
  • Rank 128,013 (Top 3 %)
  • Language
    Objective-C
  • License
    Other
  • Created over 9 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

MVVM应用在iOS的Demo,主要通过经典的TableView来演示

MVVMDemo

MVVM在iOS应用的Demo,主要通过经典的TableView来演示

MVVM来自微软,是一个相当不错的架构模式。

首先了解一下MVVM的架构

MVVM

图片来自http://www.teehanlax.com/blog/model-view-viewmodel-for-ios/

MVVMDemo的架构

Model: 数据的模型

View: 其实包括View和ViewController两部分,统称为View

ViewModel: 本Demo,主要是处理网络请求,把获取的数据显示在TableView上

另外

TableViewProtocol: 为了避免ViewController太重,我把TableView的DataSource和Delegate分离出来

MVVMDemo的效果预览

参考链接:

Model-View-ViewModel for iOS (译)

copyright (c) 2015 coderyi.all rights reserved.

More Repositories

1

Monkey

Monkey is an unofficial GitHub client for iOS,to show the rank of coders and repositories.
Objective-C
1,784
star
2

NetworkEye

a iOS network debug library, monitor HTTP requests
Objective-C
1,382
star
3

YiRefresh

a simple way to use pull-to-refresh.下拉刷新,大道至简,最简单的网络刷新控件
Objective-C
252
star
4

hello-weex

hello-weex包括一个Weex App(GitHub第三方App),和自己扩展的WeexiOSKit(iOS上的常用组件与模块)。
Java
191
star
5

DecouplingKit

decoupling between modules in your iOS Project. iOS模块化过程中模块间解耦方案
Objective-C
139
star
6

YiVideoEditor

YiVideoEditor is a library for rotating, cropping, adding layers (watermark) and as well as adding audio (music) to the videos.
Swift
104
star
7

YiSlideMenu

SlideMenu,简洁的侧边菜单,清爽风格.
Objective-C
94
star
8

MonkeyForMac

Monkey is a unofficial GitHub client
Objective-C
66
star
9

YiLotteryDemo

模仿美团积分抽奖功能
Objective-C
61
star
10

StateMachineSwift

StateMachineSwift, state machine library for Swift, supports an arbitrary number of States and Events.
Swift
42
star
11

bluedog

蓝牙调试助手小程序,支持扫描蓝牙设备,读取设备服务与特征
JavaScript
33
star
12

NewsDemo

模仿网易新闻客户端首页,实现滑动选择菜单。
Objective-C
30
star
13

markthing

online markdown editor with live preview. 在线markdown编辑器。http://coderyi.com/markthing/
JavaScript
28
star
14

ActionStage

ActionStage that dispatch message, decoupling between modules
Objective-C
27
star
15

monkeyweb

Monkey show the rank of coders and repositories on GitHub. http://coderyi.com/monkeyweb/
TypeScript
24
star
16

iOSSourceCodeAnalyze

《iOS开源库源码分析》http://coderyi.com/iOSSourceCodeAnalyze/
HTML
16
star
17

EventBus

A lightweight event bus for C++
C++
12
star
18

AutoLayoutDemo

AutoLayout代码实现方式的基本使用,包括NSLayoutConstraint创建一个约束,VFL创建一组约束以及使用Autolayout实现UITableView的Cell动态布局和高度动态改变
Objective-C
12
star
19

URLParser

an url parse/encode/decode tool
C++
10
star
20

iOSDemos

iOSDemos
Swift
9
star
21

YiUUID

This library provides the simplest API to obtain universally unique identifiers with different levels of persistence.
Swift
8
star
22

YiSwitch

类似UISwitch,想要水平的竖直的,圆的方的,有图片的没图片的,各种YiSwitch,最后原谅我的图片。
Objective-C
8
star
23

AssetsLibraryDemo

通过AssetsLibrary实现访问相册
Objective-C
6
star
24

YiDispatchQueue

a more convenient tool for dispatch queue
Objective-C
6
star
25

monkey-bytedance-miniapp

Monkey是一个可以展示GitHub上开发者、仓库排名的应用
JavaScript
5
star
26

qrcode-generator

在线二维码生成器,解码。http://coderyi.com/qrcode-generator/
Vue
5
star
27

YiAppUpdater

Checks if there is a newer version of your app in the AppStore and alerts the user to update.
Swift
5
star
28

StringFormat

A String Format Kit
Swift
4
star
29

monkey-weex

Monkey是一个GitHub Weex客户端,展示GitHub用户和仓库的排名
JavaScript
4
star
30

statemachine

An C++ library for implementing state machines.
C++
3
star
31

monkey-github-api

GitHub API for TypeScript
TypeScript
3
star
32

SystemServiceSwift

all available information about a device.
Swift
3
star
33

YiViewDrag

UIView extension that adds dragging capabilities
Swift
2
star
34

JavaScriptDemos

Objective-C
2
star
35

python-demos

python3-demos
Python
2
star
36

CounterVIPER

A simple example of the VIPER architecture for iOS apps
Swift
2
star
37

blog

1
star
38

coderyi.github.io

HTML
1
star
39

TestProject

1
star