SlideShare a Scribd company logo
MV(C,VM) in iOS &
ReactiveCocoa
Neo
Outline
MV* Family
Original
What & why
Components in MVC & MVVM
Architecture
MVC & MVVM in iOS
Something wrong?
ReactiveCocoa
Original
What & why
FRP - Functional Reactive Programming
How to use
Something right?
Conclusion
MV* Family
Original
Trygve Reenskaug(Noway computer scientist)
The original MVC reports [1]

(I made the first implementation 

and wrote the original MVC reports…)
CAD/CAM
MVC be changed a lot, and extended new 

patterns(main principle)
MVC - Model-View-Controller
MVVM - Model-View-ViewModel
MVP - Model-View-Presenter
MTV - Model-Template-View
[1]http://heim.ifi.uio.no/~trygver/2007/MVC_Originals.pdf
What are them?
Design pattern (Architecture pattern)
Diagrams for establish a robust program
architecture
Why need them?
Data, logical, and UI code are like shit in early
code when GUI appearance.
separate concrete of concerns
Handle more and more complex program
Understandable
manageable
maintainable
reusable
etc…
Components in MVC and MVVM
They are same in Model(M) and V(View)
Model (M) - the domain knowledge or data, it can be
simple value, object or class.
View (V) - everything graphical user can see
C in MVC
Controller (C) - A link between model and view, and also
an event handler.
VM in MVVM
ViewModel (VM) - it’s the same as controller, but contain all
jobs which not belong to view/model
What are they different in thinking?
Controller think that they can be three independent
components
ViewModel think that view and controller cannot be
separated clearly
Architecture improvement
Smalltalk’80 MVC
Microsoft MVVM
ref. from:[2]
ref. from:[2]
Architecture improvement
Smalltalk’80 MVC
Microsoft MVVM
ref. from:[2]
ref. from:[2]
ref. from:[3]
Architecture improvement
Smalltalk’80 MVC
Microsoft MVVM
ref. from:[2]
ref. from:[2]
ref. from:[3]
ref. from:[4]
Architecture improvement
Smalltalk’80 MVC
Microsoft MVVM
ref. from:[2]
ref. from:[2]
ref. from:[3]
ref. from:[4]
ref. from:[5]
Architecture improvement
Smalltalk’80 MVC
Microsoft MVVM
ref. from:[2]
ref. from:[2]
It’s divergent
in concepts
ref. from:[3]
ref. from:[4]
ref. from:[5]
Design pattern is still improving and evolving
MVC in iOS
In iOS, model and view always communicate
each other through by controller
Model and view never talk to controller
directly, but controller do.
ref. from:[2]
MVVM in iOS
In iOS, view controller still exist, but same as view’s task
ViewModel handler all controller’s logic block, includes
business logic, presentation logic, network request, etc…
Why is MVC in iOS?
Standard implementation
Objective-C references features of smallTalk
Official tutorial documents or classes all tell us MVC
(These pictures ref. from:[6][7])
Why Cocoa design pattern did not follow
Smarttalk’80 ?
View and model did not loose-couple
It’s not reusable
Ambiguous about what they concern
Simple to see difference in MVCs and MVVM
MVC View model
view No YES
model YES NO
MVC in iOS View model
view No NO
model NO NO
MVVM View model
view No NO
model NO NO
Three tables about components communication
MVC’s example
If i want an very simple App which can
input family name and display what I
input……
A model - Store family data
A view - a App’s GUI for user
A controller - Handle event and user’s
action
View in MVC
View does not provide any method
about data, it just provides accessor’s
method to interaction with controller.
Model in MVC
Model has a class object about data, and some method’s
related data.
Also, it does not care
about View.
Controller in MVC
In the controller, we need to implement:
notification, Delegation or other mechanism to update view or
model.
Event handler(user action or data change)
if interesting, https://github.com/flamelad/MVFamilyPractice
MVVM’s example
Family name App again lol
Difference - MVVMViewModel files
It responses for anything which is not
responded by Model and View
ViewController In MVVM
Where are these functions?
ViewModel In MVVM
Those functions all in ViewModel
But, how communicate with
ViewController?
ViewModel In MVVM
In *.h file, declare all properties which are needed to
show in screen or accepted data input.
ViewController update screen: (KVO, Notification)
Monitor these properties for update properties
ViewController input data: (Accessor method)
Access the property which is designed for receive data in
VewModel
ViewModel
Model ViewController View
delegate
Setter
Accessor Method
Notification

KVO
Notification

KVO
Something wrong?
(Let’s thinking what problem may we meet 

in iOS MVC now…)
Controller god damn fat
Some methods are inexplicit

(ex: network request about data)
KVO and notification mechanism 

lead to difficult understand it
View and controller cannot be 

really separated clearly
Difficult to do unit test
Difficult to understand your 

controllers
ReactiveCocoa is saver..….maybe?
ReactiveCocoa
Original
Github for Mac App’s Developers - Josh & Justin
ReactiveCocoa developed by them when they develop Github for
Mac
What is it
It’s a open source framework which implementation base on
Functional Reactive Programming (FRP)
https://github.com/ReactiveCocoa/ReactiveCocoa
Only supports OS X 10.9+ and iOS 8.0+
new version is concentrated on the Swift
Why is it
The framework with MVVM tried to solve problems what we meet
in MVC
FRP - Functional Reactive
Programming
It’s a programming diagram which combine
reactive programming and functional
programming
Function programming
(Just very simply describe their difference here)
Imperative programming - write and execute steps by step
Ex: for (int i=0;i<arr.count;i++){logical for find MaxNumber};
Functional programming - function, input, output.

Ex: int MaxNumber= MaxNumber(1,10);
Reactive programming
What is it? 

Concept is around data flows and propagation of change
Let’s easy to know it

Ex:
proactive vs. reactive
a = 2;

b = 3;
c = a+b;
a = 3;
Now, c = ?
c = 5 c = 6
After combine functional and reactive programming
It’s like pipe, you do not need to know how the pipe transfer water

It’s like pipe, you put something in, always something out

It’s like pipe, something always are not changed during in the pipe

It’s like pipe, water in the pipe is continuous, data flow too.

It’s like pipe, pipes can be concatenated to process it centrally

It’s like pipe, output can be filter, reduce, and map
What advantages are worth to adapt it?
Code clean - KVO, notification, target-action or observer can be
centralized
Make code more understandable
Decrease problem that value be changed at somewhere
Is it no disadvantage?
No, it is. 

1. it performance is lower than native

2. Debug is difficult

3. return value type always id.
How to start ReactiveCocoa(RAC)?
Getting started

https://github.com/ReactiveCocoa/ReactiveCocoa#getting-started/
Framework overview

https://github.com/ReactiveCocoa/ReactiveCocoa/blob/master/
Documentation/FrameworkOverview.md
There are many component to transfer and process data

Signal, Subjects, Commands, Sequences, Schedulers, mapping, etc……
Familiar it, and then do it
[Simply Demo]
MV(C, mvvm) in iOS and ReactiveCocoa
[Demo Page]
Problem thinking again
Controller god damn fat
Some methods are inexplicit (ex: network request
about data)
KVO and notification mechanism lead to difficult
understand it
View and controller cannot be really separated
clearly
Difficult to do unit test
Difficult to understand your controllers
Something right?
According to presentation, we known:

1. MVVM can solve Controller is too fat

2. MVVM can solve concerns ambiguous

3. MVVM can solve redefine View and
ViewController

4. MVVM can be more easier understand
ViewController 

5. ReactiveCocoa can let logical be centralize

6. ReactiveCocoa can help MVVM clear code and
separate
Conclusion
If MVVM is so good, why Apple does not use it?
In fact, although it’s not same all, Apple used some concepts
and logical in OSX App implementation- ref. from:[4]
If MVC is so bad, why Apple use it?
In fact, although MVC has some disadvantage, but it still a
nice design pattern. Of course, the most important is that
ObjC come from smallTalk……
Do we really need reactiveCocoa?
No, not really. It won’t have any help for a engineer grow up.
Yes, it does. it can help us clean code, clear logical, and
centralize code implementation
What time is best to introduce reactiveCocoa?
The most important - it’s just a framework, a tool,
not language.
An Sample Code of MVVM by completion App
https://medium.com/@syshen/reactivecocoa-in-
practice-4f04119efc68
Reference
2)http://ieeexplore.ieee.org/xpl/login.jsp?
tp=&arnumber=6827095&url=http%3A%2F
%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber
%3D6827095
3)http://www.diva-portal.org/smash/get/diva2:738269/
FULLTEXT01.pdfw&bvm=bv.80642063,d.eXY
4)http://www.itu.dk/courses/VOP/E2005/VOP2005E/
8_mvc_krasner_and_pope.pdf
5)https://msdn.microsoft.com/en-us/library/hh848246.aspx
6)http://www.sprynthesis.com/2014/12/06/reactivecocoa-
mvvm-introduction/
7)http://www.objc.io/issue-13/mvvm.html
8)http://www.itiger.me/?p=38 (a lot of sample code)
Q & A
Thanks

More Related Content

PDF
Models used in iOS programming, with a focus on MVVM
PDF
Встреча №9. Будущее паттерна MVVM в iOS приложениях, Денис Лебедев
PDF
ReactiveCocoa - Functional Reactive Programming concepts in iOS
PPTX
Training: MVVM Pattern
PDF
MVC Seminar Presantation
PDF
«ReactiveCocoa и MVVM» — Николай Касьянов, SoftWear
PPTX
Design Pattern - MVC, MVP and MVVM
PDF
Design & Development of Web Applications using SpringMVC
Models used in iOS programming, with a focus on MVVM
Встреча №9. Будущее паттерна MVVM в iOS приложениях, Денис Лебедев
ReactiveCocoa - Functional Reactive Programming concepts in iOS
Training: MVVM Pattern
MVC Seminar Presantation
«ReactiveCocoa и MVVM» — Николай Касьянов, SoftWear
Design Pattern - MVC, MVP and MVVM
Design & Development of Web Applications using SpringMVC

What's hot (20)

PPTX
MVVM - Model View ViewModel
PPTX
MVVM Design Pattern NDC2009
PPTX
MVVM ( Model View ViewModel )
PPTX
MVVM Lights
PPTX
MVx patterns in iOS (MVC, MVP, MVVM)
PPTX
MVVM with WPF
 
PPTX
Architectural Design Pattern: Android
PPT
Struts Ppt 1
PPTX
Advanced java lab swing mvc awt
PDF
MVVM Light Toolkit Works Great, Less Complicated
PPT
Ppt of Basic MVC Structure
PDF
MVVM in iOS presentation
PDF
Ui design patterns
PDF
iOS architecture patterns
PPT
Why MVC?
PPTX
Introduction to ejb and struts framework
PPT
MVC(Model View Controller),Web,Enterprise,Mobile
PPTX
Slide Presentation of MVP Pattern Concept
PPTX
Mvc pattern and implementation in java fair
MVVM - Model View ViewModel
MVVM Design Pattern NDC2009
MVVM ( Model View ViewModel )
MVVM Lights
MVx patterns in iOS (MVC, MVP, MVVM)
MVVM with WPF
 
Architectural Design Pattern: Android
Struts Ppt 1
Advanced java lab swing mvc awt
MVVM Light Toolkit Works Great, Less Complicated
Ppt of Basic MVC Structure
MVVM in iOS presentation
Ui design patterns
iOS architecture patterns
Why MVC?
Introduction to ejb and struts framework
MVC(Model View Controller),Web,Enterprise,Mobile
Slide Presentation of MVP Pattern Concept
Mvc pattern and implementation in java fair
Ad

Viewers also liked (9)

PDF
MVC na iOS - For-Mobile 2/2013
PPTX
Porównanie architektur MVVM i MVC (iOS)
PDF
MVVM on iOS
PDF
«MVVM в Swift», Александр Зимин, независимый iOS-разработчик
PPTX
React vs Angular: ups & downs (speaker Oleksandr Kovalov, Binary Studio)
PDF
«Как общаться и договариваться с заказчиками о проектной работе», Валентин Ша...
PDF
Angular 2 vs React
PDF
React 101
PDF
ReactJS vs AngularJS - Head to Head comparison
MVC na iOS - For-Mobile 2/2013
Porównanie architektur MVVM i MVC (iOS)
MVVM on iOS
«MVVM в Swift», Александр Зимин, независимый iOS-разработчик
React vs Angular: ups & downs (speaker Oleksandr Kovalov, Binary Studio)
«Как общаться и договариваться с заказчиками о проектной работе», Валентин Ша...
Angular 2 vs React
React 101
ReactJS vs AngularJS - Head to Head comparison
Ad

Similar to MV(C, mvvm) in iOS and ReactiveCocoa (20)

PPTX
ASPNet MVC series for beginers part 1
PPTX
Asp net mvc series for beginers part 1
DOCX
IntroductionToMVC
PPT
Code Camp 06 Model View Presenter Architecture
PPTX
Modern ASP.NET Webskills
PPTX
Webinar: Spring Framework - Introduction to Spring WebMVC & Spring with BigData
PDF
Principles of MVC for PHP Developers
PPT
Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...
PPTX
ASP.NET MVC 3
PPTX
ASP.NET MVC Presentation
PPTX
Software architectural design patterns(MVC, MVP, MVVM, VIPER) for iOS
DOCX
Month 2 report
PPTX
Building an enterprise app in silverlight 4 and NHibernate
PPTX
MVC & backbone.js
PDF
jQquerysummit - Large-scale JavaScript Application Architecture
PDF
learn mvc project in 7 day
PDF
A Brief Note On Asp.Net And Cloud Computing Essay
PPT
MVC Demystified: Essence of Ruby on Rails
PPTX
Introdução ao ASP .NET MVC - C. Augusto Proiete
PDF
MVC in PHP
ASPNet MVC series for beginers part 1
Asp net mvc series for beginers part 1
IntroductionToMVC
Code Camp 06 Model View Presenter Architecture
Modern ASP.NET Webskills
Webinar: Spring Framework - Introduction to Spring WebMVC & Spring with BigData
Principles of MVC for PHP Developers
Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...
ASP.NET MVC 3
ASP.NET MVC Presentation
Software architectural design patterns(MVC, MVP, MVVM, VIPER) for iOS
Month 2 report
Building an enterprise app in silverlight 4 and NHibernate
MVC & backbone.js
jQquerysummit - Large-scale JavaScript Application Architecture
learn mvc project in 7 day
A Brief Note On Asp.Net And Cloud Computing Essay
MVC Demystified: Essence of Ruby on Rails
Introdução ao ASP .NET MVC - C. Augusto Proiete
MVC in PHP

Recently uploaded (20)

PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Nekopoi APK 2025 free lastest update
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
L1 - Introduction to python Backend.pptx
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
AI in Product Development-omnex systems
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
System and Network Administration Chapter 2
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
wealthsignaloriginal-com-DS-text-... (1).pdf
How to Choose the Right IT Partner for Your Business in Malaysia
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Reimagine Home Health with the Power of Agentic AI​
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Nekopoi APK 2025 free lastest update
VVF-Customer-Presentation2025-Ver1.9.pptx
L1 - Introduction to python Backend.pptx
Which alternative to Crystal Reports is best for small or large businesses.pdf
AI in Product Development-omnex systems
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
How Creative Agencies Leverage Project Management Software.pdf
System and Network Administration Chapter 2
Softaken Excel to vCard Converter Software.pdf
Wondershare Filmora 15 Crack With Activation Key [2025

MV(C, mvvm) in iOS and ReactiveCocoa

  • 1. MV(C,VM) in iOS & ReactiveCocoa Neo
  • 2. Outline MV* Family Original What & why Components in MVC & MVVM Architecture MVC & MVVM in iOS Something wrong? ReactiveCocoa Original What & why FRP - Functional Reactive Programming How to use Something right? Conclusion
  • 3. MV* Family Original Trygve Reenskaug(Noway computer scientist) The original MVC reports [1]
 (I made the first implementation 
 and wrote the original MVC reports…) CAD/CAM MVC be changed a lot, and extended new 
 patterns(main principle) MVC - Model-View-Controller MVVM - Model-View-ViewModel MVP - Model-View-Presenter MTV - Model-Template-View [1]http://heim.ifi.uio.no/~trygver/2007/MVC_Originals.pdf
  • 4. What are them? Design pattern (Architecture pattern) Diagrams for establish a robust program architecture Why need them? Data, logical, and UI code are like shit in early code when GUI appearance. separate concrete of concerns Handle more and more complex program Understandable manageable maintainable reusable etc…
  • 5. Components in MVC and MVVM They are same in Model(M) and V(View) Model (M) - the domain knowledge or data, it can be simple value, object or class. View (V) - everything graphical user can see C in MVC Controller (C) - A link between model and view, and also an event handler. VM in MVVM ViewModel (VM) - it’s the same as controller, but contain all jobs which not belong to view/model What are they different in thinking? Controller think that they can be three independent components ViewModel think that view and controller cannot be separated clearly
  • 6. Architecture improvement Smalltalk’80 MVC Microsoft MVVM ref. from:[2] ref. from:[2]
  • 7. Architecture improvement Smalltalk’80 MVC Microsoft MVVM ref. from:[2] ref. from:[2] ref. from:[3]
  • 8. Architecture improvement Smalltalk’80 MVC Microsoft MVVM ref. from:[2] ref. from:[2] ref. from:[3] ref. from:[4]
  • 9. Architecture improvement Smalltalk’80 MVC Microsoft MVVM ref. from:[2] ref. from:[2] ref. from:[3] ref. from:[4] ref. from:[5]
  • 10. Architecture improvement Smalltalk’80 MVC Microsoft MVVM ref. from:[2] ref. from:[2] It’s divergent in concepts ref. from:[3] ref. from:[4] ref. from:[5] Design pattern is still improving and evolving
  • 11. MVC in iOS In iOS, model and view always communicate each other through by controller Model and view never talk to controller directly, but controller do. ref. from:[2]
  • 12. MVVM in iOS In iOS, view controller still exist, but same as view’s task ViewModel handler all controller’s logic block, includes business logic, presentation logic, network request, etc… Why is MVC in iOS? Standard implementation Objective-C references features of smallTalk Official tutorial documents or classes all tell us MVC (These pictures ref. from:[6][7])
  • 13. Why Cocoa design pattern did not follow Smarttalk’80 ? View and model did not loose-couple It’s not reusable Ambiguous about what they concern Simple to see difference in MVCs and MVVM MVC View model view No YES model YES NO MVC in iOS View model view No NO model NO NO MVVM View model view No NO model NO NO Three tables about components communication
  • 14. MVC’s example If i want an very simple App which can input family name and display what I input…… A model - Store family data A view - a App’s GUI for user A controller - Handle event and user’s action
  • 15. View in MVC View does not provide any method about data, it just provides accessor’s method to interaction with controller.
  • 16. Model in MVC Model has a class object about data, and some method’s related data. Also, it does not care about View.
  • 17. Controller in MVC In the controller, we need to implement: notification, Delegation or other mechanism to update view or model. Event handler(user action or data change) if interesting, https://github.com/flamelad/MVFamilyPractice
  • 18. MVVM’s example Family name App again lol Difference - MVVMViewModel files It responses for anything which is not responded by Model and View
  • 19. ViewController In MVVM Where are these functions?
  • 20. ViewModel In MVVM Those functions all in ViewModel But, how communicate with ViewController?
  • 21. ViewModel In MVVM In *.h file, declare all properties which are needed to show in screen or accepted data input. ViewController update screen: (KVO, Notification) Monitor these properties for update properties ViewController input data: (Accessor method) Access the property which is designed for receive data in VewModel
  • 22. ViewModel Model ViewController View delegate Setter Accessor Method Notification
 KVO Notification
 KVO
  • 23. Something wrong? (Let’s thinking what problem may we meet 
 in iOS MVC now…) Controller god damn fat Some methods are inexplicit
 (ex: network request about data) KVO and notification mechanism 
 lead to difficult understand it View and controller cannot be 
 really separated clearly Difficult to do unit test Difficult to understand your 
 controllers ReactiveCocoa is saver..….maybe?
  • 24. ReactiveCocoa Original Github for Mac App’s Developers - Josh & Justin ReactiveCocoa developed by them when they develop Github for Mac What is it It’s a open source framework which implementation base on Functional Reactive Programming (FRP) https://github.com/ReactiveCocoa/ReactiveCocoa Only supports OS X 10.9+ and iOS 8.0+ new version is concentrated on the Swift Why is it The framework with MVVM tried to solve problems what we meet in MVC
  • 25. FRP - Functional Reactive Programming It’s a programming diagram which combine reactive programming and functional programming Function programming (Just very simply describe their difference here) Imperative programming - write and execute steps by step Ex: for (int i=0;i<arr.count;i++){logical for find MaxNumber}; Functional programming - function, input, output.
 Ex: int MaxNumber= MaxNumber(1,10);
  • 26. Reactive programming What is it? 
 Concept is around data flows and propagation of change Let’s easy to know it
 Ex: proactive vs. reactive a = 2;
 b = 3; c = a+b; a = 3; Now, c = ? c = 5 c = 6
  • 27. After combine functional and reactive programming It’s like pipe, you do not need to know how the pipe transfer water
 It’s like pipe, you put something in, always something out
 It’s like pipe, something always are not changed during in the pipe
 It’s like pipe, water in the pipe is continuous, data flow too.
 It’s like pipe, pipes can be concatenated to process it centrally
 It’s like pipe, output can be filter, reduce, and map What advantages are worth to adapt it? Code clean - KVO, notification, target-action or observer can be centralized Make code more understandable Decrease problem that value be changed at somewhere Is it no disadvantage? No, it is. 
 1. it performance is lower than native
 2. Debug is difficult
 3. return value type always id.
  • 28. How to start ReactiveCocoa(RAC)? Getting started
 https://github.com/ReactiveCocoa/ReactiveCocoa#getting-started/ Framework overview
 https://github.com/ReactiveCocoa/ReactiveCocoa/blob/master/ Documentation/FrameworkOverview.md There are many component to transfer and process data
 Signal, Subjects, Commands, Sequences, Schedulers, mapping, etc…… Familiar it, and then do it [Simply Demo]
  • 31. Problem thinking again Controller god damn fat Some methods are inexplicit (ex: network request about data) KVO and notification mechanism lead to difficult understand it View and controller cannot be really separated clearly Difficult to do unit test Difficult to understand your controllers
  • 32. Something right? According to presentation, we known:
 1. MVVM can solve Controller is too fat
 2. MVVM can solve concerns ambiguous
 3. MVVM can solve redefine View and ViewController
 4. MVVM can be more easier understand ViewController 
 5. ReactiveCocoa can let logical be centralize
 6. ReactiveCocoa can help MVVM clear code and separate
  • 33. Conclusion If MVVM is so good, why Apple does not use it? In fact, although it’s not same all, Apple used some concepts and logical in OSX App implementation- ref. from:[4] If MVC is so bad, why Apple use it? In fact, although MVC has some disadvantage, but it still a nice design pattern. Of course, the most important is that ObjC come from smallTalk…… Do we really need reactiveCocoa? No, not really. It won’t have any help for a engineer grow up. Yes, it does. it can help us clean code, clear logical, and centralize code implementation What time is best to introduce reactiveCocoa? The most important - it’s just a framework, a tool, not language.
  • 34. An Sample Code of MVVM by completion App https://medium.com/@syshen/reactivecocoa-in- practice-4f04119efc68 Reference 2)http://ieeexplore.ieee.org/xpl/login.jsp? tp=&arnumber=6827095&url=http%3A%2F %2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber %3D6827095 3)http://www.diva-portal.org/smash/get/diva2:738269/ FULLTEXT01.pdfw&bvm=bv.80642063,d.eXY 4)http://www.itu.dk/courses/VOP/E2005/VOP2005E/ 8_mvc_krasner_and_pope.pdf 5)https://msdn.microsoft.com/en-us/library/hh848246.aspx 6)http://www.sprynthesis.com/2014/12/06/reactivecocoa- mvvm-introduction/ 7)http://www.objc.io/issue-13/mvvm.html 8)http://www.itiger.me/?p=38 (a lot of sample code)