// // RAUploadManager.m // test_autolayout // // Created by Ray on 02/05/2017. // Copyright © 2017 USAI. All rights reserved. // #import #import "RAUploadManager.h" #import "NetworkUtils.h" #import "RAUtils.h" @implementation RAUploadManager - (instancetype)init { if (self = [super init]) { self.arr_queue = [[NSMutableArray alloc] init]; self.newtaskStatus = TaskStatusWait; self.maxThread = 3; self.removeError=true; self.removeFinish = true; self.operation_queue = [NSOperationQueue new]; self.operation_queue.maxConcurrentOperationCount = self.maxThread; // self.backgroundColor = [UIColor clearColor]; } return self; } //-(void) upload:(NSString*) url //{ // while(self.activeThread