Whats the best pattern for singleton? I frequently use
+ (SomeManager *)shared
{
    static SomeManager * _SomeManager = nil;
    if (_SomeManager) {
        return _SomeManager;
    }
    _SomeManager = [[SomeManager alloc] init];
    return _SomeManager;
}
Is this thread safe? If not, hot to make it safe?
 
     
     
     
    