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 8625443
In Process

The Archive Base Latest Questions

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

I have an iOS app where 5 NSBlockOperation produce an NSArray of objects each

  • 0

I have an iOS app where 5 NSBlockOperation produce an NSArray of objects each and add it to a shared synchronized NSMutableArray which serves as a UITableView datasource.

The operation are independent from each other, and as soon as they have finished I need to launch a UITableView data reload.

Unfortunately I couldn’t find a way to do this with NSOperation. Do I need to use another multi thread design ?

  • 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-12T07:47:16+00:00Added an answer on June 12, 2026 at 7:47 am

    Add your reload data call to yet another NSOperation, which has as its dependencies (see addDependency:) the other five operations. It will then not be executed until the others are complete.

    Be sure to wrap your UI calls in a GCD dispatch to the main thread.

    From the NSOperation reference:

    Dependencies are a convenient way to execute operations in a specific order. You can add and remove dependencies for an operation using the addDependency: and removeDependency: methods. By default, an operation object that has dependencies is not considered ready until all of its dependent operation objects have finished executing. Once the last dependent operation finishes, however, the operation object becomes ready and able to execute.

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

Sidebar

Related Questions

I have an iOS app with a UITableView that has flexible width, which allow
I have an iOS app with a list of objects. Each object has some
Overview I have an iOS app which sends local notifications at specific dates. I
I have a iOS app that, in a nutshell, uses a UITableView and a
I have an iOS-App which uses ARC. I don't use InterfaceBuilder, all UI is
I'm working on mobile (Android/iOS) app, which will integrate with FB and have a
guys, I have iOS app, which running good on ios5.0, but on 4.3.3 it's
I have an iOS app which I need to upload the binary of. From
I have an iOS app which is using ASIHTTPRequest to talk to a REST
I have an IOS app, and each time it is updated I want to

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.