Singleton Issues in iOS http client
- by Andrew Lauer Barinov
I implemented an HTTP client is iOS that is meant to be a singleton. It is a subclass of AFNetworking's excellent AFHTTPClient
My access method is pretty standard:
+ (LBHTTPClient*) sharedHTTPClient
{
static dispatch_once_t once = 0;
static LBHTTPClient *sharedHTTPClient = nil;
dispatch_once(&once, ^{
sharedHTTPClient…