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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:53:58+00:00 2026-05-17T14:53:58+00:00

basically, I’m stuck ha. I have a page where a video gets downloaded. It

  • 0

basically, I’m stuck ha. I have a page where a video gets downloaded. It has a UIProgressView bar in it.

When the user selects a row in the table view it calls VideoPage *page = [[VideoPage alloc] initWithVideoId:[indexPath row]] and then pushes that view controller onto the view stack. This page then starts the download, and in turn the progress view.

Now, if the user presses back on the navigation controller and goes back to the list of videos and then chooses the SAME row again it will init a new version of this page, meaning that the init of the page that is constantly updating the UIProgressView is lost forever.

Is there any way around this? I’m sorry if the question is vague. Basically if I have already init’d a view controller with videoId = 3 then I don’t want to init another one, I want to just push the current one again, so that the UIProgressView is still showing.

Thanks for any help you can give me. 🙂

  • 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-05-17T14:53:59+00:00Added an answer on May 17, 2026 at 2:53 pm

    You can keep a reference to your view controllers and store them in a dictionary keyed by the row index or something, then whenever the row is clicked you can check if the key exist in the dictionary, if it does then you just get the value and repush that onto the stack, if it doesnt exist then create it and add it to the dictionary and push it on to the stack…

    After reading your comment, sounds like you need to have some sort of download manager class that will handle your downloads in the background…My suggestion would be make some singleton class that manages downloads, this class should keep the state of each movie download that the user initiated, when its time to recreate the view controllers, you should check with the manager to see if a certain download has already been initiated, if it has, then use the data in the download manager to put your view controller in the expected state…

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

Sidebar

Related Questions

Basically, I have a table. Onload, I set each row of the table to
Basically, what I'm trying to create is a page of div tags, each has
Basically I have some code to check a specific directory to see if an
Basically I am trying to restart a service from a php web page. Here
Basically, I have a matrix class like this (with a lot of operator overloads
Basically, I have an array, let's say @badvalues . I have another array, let's
Basically what I want to do it this: a pdb file contains a location
Basically, something better than this: <input type=file name=myfile size=50> First of all, the browse
Basically I'm going to go a bit broad here and ask a few questions
Basically, I would like a brief explanation of how I can access a SQL

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.