+ (NetworkManager *)sharedInstance
{
static dispatch_once_t onceToken;
static NetworkManager * sSharedInstance;
dispatch_once(&onceToken;, ^{
sSharedInstance = [[NetworkManager alloc] init];
});
return sSharedInstance;
}
+ (NetworkManager *)sharedInstance
{
static dispatch_once_t onceToken;
static NetworkManager * sSharedInstance;
dispatch_once(&onceToken;, ^{
sSharedInstance = [[NetworkManager alloc] init];
});
return sSharedInstance;
}