Skip to content
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

没看到你有什么探索啊? #5

Open
lafezhang opened this issue May 3, 2018 · 2 comments
Open

没看到你有什么探索啊? #5

lafezhang opened this issue May 3, 2018 · 2 comments

Comments

@lafezhang
Copy link

没看到view的action是如何影响model的,也没看到model的更新是如何反馈到view上。90%的有效代码都是各种网络回掉的block,这在解释架构上有什么意义?

@lizelu
Copy link
Owner

lizelu commented May 3, 2018

感谢批评指正!
确切的说这个工程不是MVVM结构的,顶多算是MVP的,该Demo中只是把一些VC中的逻辑提取到了所谓的VM层,然后通过Block进行交互,是好早之前写的工程。现在用的架构是RAC+MVVM的。VC与VM通过各种信号进行绑定,通过信号与VM进行交互,VM与M层进行 交互。
下方是之前写的一个简单的例子:
https://github.com/lizelu/MVVMWithReactiveCocoa

@DonyFang
Copy link

你是来搞笑的吗?这哪里是MVP了???星星找了不少人帮你刷吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants