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

Presenter 的复用问题 #1

Closed
limboc opened this issue May 11, 2016 · 2 comments
Closed

Presenter 的复用问题 #1

limboc opened this issue May 11, 2016 · 2 comments

Comments

@limboc
Copy link

limboc commented May 11, 2016

是否可以把presenter层从ui里独立出来,毕竟不同的view可能有相同的业务

@north2016
Copy link
Owner

可以 我这是按照功能分包 也可以按照结构分包

@Ztiany
Copy link

Ztiany commented Oct 14, 2016

Presenter大多数的时候都是为了解耦,很少看到能复用的Presenter,比较赞成作者的分包方式,但是我觉得不应该把M和P绑定在一起,很多时候一个Presenter需要跟多个数据源(多个M)交互。所以每个M应该是独立的,由上层的Presenter来调用一个或者多个。

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