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

some suggestion #28

Closed
gwpp opened this issue Jul 23, 2018 · 1 comment
Closed

some suggestion #28

gwpp opened this issue Jul 23, 2018 · 1 comment

Comments

@gwpp
Copy link

gwpp commented Jul 23, 2018

这种小工具其实可以不让业务方初始化的,自己监听一下didFinishLaunch通知,在通知回调里初始化就好了,不用让调用者来区分DEBUG、RELEASE还或者是其他环境,因为在Podfile里就可以限制

@CocoaDebug
Copy link
Owner

  • 如果需要自定义一些CocoaDebug初始化参数,还是需要在didFinishLaunch 写自己的代码
  • 目前CocoaDebug对外的方法enable()disable()可以更加灵活的开启和关闭debug功能

所以,在didFinishLaunch 业务方初始化还是更加灵活,毕竟每个人的需求可能都不太一样,其实也就是一行代码的事。

@CocoaDebug CocoaDebug added the enhancement New feature or request label Jul 23, 2018
@CocoaDebug CocoaDebug removed the enhancement New feature or request label Apr 2, 2019
@CocoaDebug CocoaDebug changed the title 一点小建议 some suggestion Jun 9, 2019
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