AFNetworking 2.0 download multiple images with completion

后端 未结 3 394
再見小時候
再見小時候 2021-01-01 05:23

I\'m trying to figure out a way to download multiple images with AFNewtorking 2.0. I\'ve read a lot of posts here in SO, but can\'t find the answer I\'m looking for, hope yo

3条回答
  •  情话喂你
    2021-01-01 06:20

    Check out +[AFURLConnectionOperation batchOfRequestOperations:progressBlock:completionBlock:]

    Although it's not documented, implementation is self-explanatory. Also it allows you to monitor the progress.

    You will need to have an array of HTTP operations prior to using this method (this is if you decided to stick to NSURLConnection-based implementation of AFNetworking).

提交回复
热议问题