阅读背景:

将AppDelegate用作Singleton是不好的做法吗?

来源:互联网 

I'm sometimes using a Singleton (to store data that is used by several different classes) in my projects and I'm thinking why not use my AppDeletage, since it's already a Singleton and easy to access. Is this a bad practice and if so, why? I'm sometimes using a Singleton (to store data




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: