-
Notifications
You must be signed in to change notification settings - Fork 781
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
关于 BHServiceProtocol 单例的疑问 #71
Labels
Comments
这里是为了便于统一,自己实现的创建方法是有入参吗? |
有些类是需要自己创建的单例,感觉判断下是否实现 |
Merged
@SoXeon 我的疑问是,你定义了创建单例的方法,我遵循了你的方法返回一个单例,可为什么你没有使用? |
implInstance = [[implClass alloc] init]; |
已合并 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在
BHServiceProtocol
中定义了shareInstance
这个方法,那么我通过createService:
获取一个单例对象的时候,为什么单例对象不是通过我实现的方法创建?在上面
BHServiceManager
的createService:
实现中,只是判断了是否实现了singleton
方法,然后是通过[[implClass alloc] init]
创建的单例。The text was updated successfully, but these errors were encountered: