iOSMVVM(Model-View(View/ViewController) -ViewModel ) 设计模式

 

 

MVVM 设计模式讲解《1》 http://www.itnose.net/detail/6169073.html

Under MVVM, the view and view controller become formally connected; we treat them as one. Views still don’t have references to the model, but neither do controllers. Instead, they reference the view model. (V 没有引用Model, 但是Model会引用View、Viewcontroller )

 

 

MVVM 设计模式讲解《2》 

MVVM 设计模式讲解《3》 

 

MVVM 设计模式的缺陷

If you’ve been developing iOS applications for any length of time, you’ve probably heard of Model-View-Controller, or MVC. It’s your standard approach to building iOS apps.  Lately, however, I’ve been growing tired of some of MVC’s shortcomings. In this article, I’m going to go over what MVC is, detail its weaknesses, and tell you about a new way to structure your apps: Model-View-ViewModel. Get out your buzzword bingo cards, because we’re about to have a paradigm shift.

参考文章:  http://www.teehanlax.com/blog/model-view-viewmodel-for-ios/

你可能感兴趣的:(controller)