How to tell if blocks in loop all have completed executing?

前端 未结 4 1930
一个人的身影
一个人的身影 2020-12-02 19:10

I have a loop set up that downloads a series a images which I will later use for to animate using the animationImages property of UIImageView. I wo

4条回答
  •  -上瘾入骨i
    2020-12-02 20:14

    Set up a property and initialize it to the number of cycles - objects.count. In the completion of the block, lower the number down. When you reach zero, you are done.

提交回复
热议问题