- 1
- 2
- 3
- 4
- 5
- 6
- 7
#define RETURN_CREATED_SGINGLETON_MUTABLE_ARRAY \
static NSMutableArray* _singletonArray = nil; \
static dispatch_once_t onceToken; \
dispatch_once(&onceToken, ^{ \
_singletonArray = [[NSMutableArray alloc] init]; \
}); \
return _singletonArray;