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

PassiveView与Presenter的引用关系疑问 #1

Open
samuelltk opened this issue Mar 23, 2020 · 2 comments
Open

PassiveView与Presenter的引用关系疑问 #1

samuelltk opened this issue Mar 23, 2020 · 2 comments

Comments

@samuelltk
Copy link

我看这本书中写的,PassiveView有一个Owns指向Presenter,但是我看您的代码中,刚好是相反的,请问怎么样是对的呢?

image

@one-tea
Copy link
Owner

one-tea commented Mar 23, 2020

看到你的图,UIView and/or UIViewController 来持有present,如果不存在VC可以由view来持有,关键思想是抽出部分逻辑代码代为管理,有优势也有弊端,要灵活运用

@samuelltk
Copy link
Author

看到你的图,UIView and/or UIViewController 来持有present,如果不存在VC可以由view来持有,关键思想是抽出部分逻辑代码代为管理,有优势也有弊端,要灵活运用
好的,知道了,多谢

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

2 participants