Home  >  Q&A  >  body text

objective-c - 将取得的图片放在一个数组里,用for循环调用单张图片上传的接口上传图片,为什么只有最后一张图片上传成功呀

世界只因有你世界只因有你2701 days ago500

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-05-02 09:25:13

    First of all, I don’t know OC very well. I don’t know whether your method of uploading pictures is single-threaded or multi-threaded. However, I feel that it should not be executed in a For loop. Putting it in a For loop will upload all pictures. You can consider it. Add an upload success event listener. After each picture is uploaded successfully or fails, the next picture is uploaded.

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-02 09:25:13

    I still don’t understand why

    reply
    0
  • Cancelreply