-(void) UploadImages: (Nsarray *) images Atindex: (nsinteger) Index token: (NSString *) token UploadManager: ( Qnuploadmanager *) UploadManager keys: (Nsmutablearray *) keys{UIImage *image = Images[index]; __block Nsinteger imageindex = index; NSData *data = uiimagejpegrepresentation (image, 0.5); Nstimeinterval time= [[NSDate New] timeIntervalSince1970]; NSString *filename = [NSString stringwithformat:@ "%@_%ld_%.f.%@", @ "status", 686734963504054272,time,@ "jpg"]; [UploadManager putdata:data key:filename token:token complete:^ (qnresponseinfo *info, NSString *key, NSDi Ctionary *resp) {if (Info.isok) {[Keys Addobject:key]; NSLog (@ "Idinex%ld,ok", index); imageindex++; if (ImageIndex >= images.count) {NSLog (@ "upload complete"); For (NSString *imgkey in keys) {NSLog (@ "%@", Imgkey); } return; } [self uploadimages:images atindex:imageindex token:token Uploadmanager:uploadmanager Keys:keys] ; }} Option:nil];}
IOS Seven multiple photos upload