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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:39:52+00:00 2026-06-02T11:39:52+00:00

I got a small issue. I have a detail view with a button. When

  • 0

I got a small issue.

I have a detail view with a button. When the user clicks this button, some stuff happens (parse xml, download files, …). This happens with a dispatch_queue.

Also, when the button is clicked. The detail view segues to a table view. The table view shows the files in the NSDocumentDirectory.

The problem: my segue goes to the tableview before the tasks in the queue are done. Which results in a not-up-to-date list of files in my tableview.

So what I want is my segue to wait until the queue is done working and to show an activity indicator while the queue is working on my detail view. When the queue has finished, the segue can segue to the tableviewcontroller.

Can anyone help me?

That would be awesome.

Thanks

  • 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-02T11:39:53+00:00Added an answer on June 2, 2026 at 11:39 am

    Probably the easiest way is to not use a “automatic” segue. That is, link the segue from, say, the view to the new view controller rather than directly from the button.

    When your button is pressed you start the background task and display a “processing” HUD.

    When it’s finished you would remove the HUD and “manually” perform the segue.

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

Sidebar

Related Questions

I got a small issue here. I have a button in a form (this
Got a small issue with this website structure: www.bigideaadv.com/xsp Looking to have this container
I have an issue that has got me pretty stumped, and would appreciate some
Okay, I got this small program which tags (as in ID3v2.4 etc.) some music
I got a small issue with Magento : I need to load the content
I've got a small Cocoa problem. I have a StatusBar application that has an
I've got a small program that opens a file and does some operation on
A small issue over here i have 4 sections when i click on the
I'm developing an iPhone Application, and I have a small issue, or so I
I am new to asp.net and have got some concerns about the bloated viewstate

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.