Following up with the post: Can AFNetworking return data synchronously (inside a block)?
One of the comments in that post was:
The trick to asynchronous programming is to break the procedural, synchronous assumption that data is there when you ask for it. Instead, with async, when you ask for something, you give it a callback to perform when the data finally is ready. In this case, you would call the block in the success block of the JSON operation. Rather than the method returning data, it's told what to do when the data is finished downloaded.
Although I'm using GCD and asynchronous downloading on iOS, I do not really understand how to implement this "procedural break" when programming with async.
For example, assume I need to download some JSON data, which includes lots of data including an image URL. I will have to download the actual image afterwards.
Each cell in the table takes in the data from the JSON/images downloaded. How would I implement this procedural break in this case?