Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8585289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:01:19+00:00 2026-06-11T22:01:19+00:00

Following up with the post: Can AFNetworking return data synchronously (inside a block)? One

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:01:21+00:00Added an answer on June 11, 2026 at 10:01 pm

    While your data has not arrived, your table view dataSource tells its table view that it has zero rows, and displays a spinner. When the callback is fired, you store the data somewhere, remove the spinner, and call [tableView reloadData]. Basically, that’s all there is to it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following set-up. BlogPosts BlogToCategory Category One blog post can have many
Can anyone post the steps for integrating mercurial to phped. I followed the following
If I return nothing to the following post, I get an AJAX parse error:
When i write the following code Post.find(:all,:group=>'comments') It only gives me the first record
The following post relates to the System.Data.SQLite data provider by phxsoftware ( http://sqlite.phxsoftware.com )
This is related to the following post: The function that retrieves the item counts
I have a WP7 game that has symptoms similar to the following post: WP7
I noticed that this was asked in the following post . Has anyone used
Can I add a custom headers to the following headers POST /InStock HTTP/1.1 Host:
How can we post following array to mysql(columns: id, date, amount)... Array ( [date]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.