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

emptyDataSetSource和emptyDataSetDelegate 在声明时对循环引用一点的疑问? #49

Open
bestannwn opened this issue Dec 21, 2021 · 0 comments

Comments

@bestannwn
Copy link

在项目源码中在声明emptyDataSetSource和emptyDataSetDelegate的时候为啥不需要加 weak?
项目中是:
public var emptyDataSetSource: EmptyDataSetSource?
public var emptyDataSetDelegate: EmptyDataSetDelegate?

为什么不设置为
public weak var emptyDataSetSource: EmptyDataSetSource?
public weak var emptyDataSetDelegate: EmptyDataSetDelegate?

还望大佬讲解一下?谢谢~

@bestannwn bestannwn changed the title emptyDataSetSource和emptyDataSetDelegate 在声明时对一点循环引用的疑问? emptyDataSetSource和emptyDataSetDelegate 在声明时对循环引用一点的疑问? Dec 21, 2021
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

1 participant