#import "SingletonObject.h" static NSMutableDictionary *cls_varietySingletons = nil; @implementation SingletonObject + (void)initialize { static dispatch_once_t once; dispatch_once(&once, ^ { cls_varietySingletons = [NSMutableDictionary new]; }); } #pragma mark - singleton process + (instancetype)sharedInstance { @synchronized (self) { id storedSingleton = cls_varietySingletons[NSStringFromClass(s