在单例方法中我应该如何使用单例:
喜欢:
[self doMethod];
要么:
[[SingletonClass sharedSingleton] doMethod];
?
singleton objective-c ios
ios ×1
objective-c ×1
singleton ×1