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

  • Home
  • SEARCH
  • 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 8683325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:00:47+00:00 2026-06-12T22:00:47+00:00

I have the following sequence: Start MBProgressHUD spinner Download several images using NSConnectionURL and

  • 0

I have the following sequence:

  1. Start MBProgressHUD spinner
  2. Download several images using NSConnectionURL and implemented connectionDidFinishLoading delegate to show the image
  3. Stop spinner after all images are downloaded and show the parent view that contains all the images

How should I implement the connectionDidFinishLoading: to determine whether all the images are downloaded so that I can stop the spinner?

Should I be tracking the number of downloads, but what about thread safety?

Or should I be looking at GCD?

  • 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-12T22:00:48+00:00Added an answer on June 12, 2026 at 10:00 pm

    I would use an NSOperationQueue and submit the downloads as individual block operations with synchronous NSURLConnection requests. You can set the maximum number of concurrent operations there, so that you don’t download everything at once, and you get cancelling for free. Tracking the finish can be done simply by submitting another operation to the queue – the last operation submitted will run after all downloads have finished. This would probably require limiting the number of concurrent operations to one, though, so an alternative is to watch (KVO) the number of remaining operations. When that drops to zero, you’re done.

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

Sidebar

Related Questions

I have the following sequence: [as seen now in Toad]: CREATE SEQUENCE LOG_ID_SEQ START
I have a threaded server written in Python that I start using the following
I have created a sequence called as hibernate_sequnce using following command create sequence hibernate_sequence
I'm a newbie to regular expressions and I have the following string: sequence =
I have the following table and sequence in my postgresql-8.4 database: CREATE TABLE complexobjectpy
I have integrated in Hudson a maven 3 project calling following sequence: clean tomcat:redeploy
I have the following: <xs:schema> <xs:complexType name=NameType> <xs:sequence> <xs:element name=NamePrefix type=core:NamePrefixType minOccurs=0/> <xs:element name=FirstName
I have the following xsd snippet: <xs:complexType name=HighSchoolType> <xs:sequence> <xs:element name=OrganizationName type=core:OrganizationNameType/> <xs:group ref=core:OrganizationIDGroup
I have been using ffmpeg to convert a sequence of jpegs to a video
I have the following factories: Factory.define :producer, :class => User do |f| f.sequence(:email) {

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.