标签:
+ (id)sharedRequest
{
//利用gcd创建一个单例模式 用来上传图片
static DVHttpConnectRequest *connectRequest = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
connectRequest = [[DVHttpConnectRequest alloc]init];
});
return connectRequest;
标签:
原文地址:http://www.cnblogs.com/genpichong/p/4689613.html