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

UIApplicationDelegate中对于有返回值的方法你这直接返回YES了 #11

Closed
dengchenglin opened this issue May 17, 2019 · 3 comments

Comments

@dengchenglin
Copy link

UIApplicationDelegate中对于有返回值的方法你这直接返回YES了

@dengchenglin
Copy link
Author

就基于AppDetegate解耦 感觉没必要设计的这么复杂
让QTAppModule直接遵守下UIApplicationDelegate, QTAppDelegate里拿到所有遵守QTAppModule的对象直接调用就好了 , 有返回值的方法也可以一个个直接返回

@dengchenglin
Copy link
Author

遍历service 碰到返回NO的继续遍历 碰到yes停止遍历直接返回

@LeoMobileDeveloper
Copy link
Owner

感谢源码看的这么细。实际生产环境中,绝大多数都是返回YES的,框架在设计之处就没有考虑返回NO。哈哈😄

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