IOS Seven multiple photos upload

Source: Internet
Author: User

-(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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.