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

为什么要写TangramBus不用NotificationCenter #82

Open
originme opened this issue Aug 2, 2018 · 1 comment
Open

为什么要写TangramBus不用NotificationCenter #82

originme opened this issue Aug 2, 2018 · 1 comment

Comments

@originme
Copy link

originme commented Aug 2, 2018

我看了下,TangramBus用的功能基本上跟NotificationCenter一样,唯一考虑到重新封装一个类似NotificationCenter的原因是,NotificationCenter在 iOS 9以下的系统有内存释放的问题。

@a455455b
Copy link

我是这样理解的,NotificationCenter的通信方式在完全松耦合的业务场景下是很适用的,但是基础组件通信的时候,我们并不需要这种通信方式,基础组件使用这种松耦合的通信会造成接口不明确。

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