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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:41:45+00:00 2026-05-26T22:41:45+00:00

I am loading a file and would like to show the progress in a

  • 0

I am loading a file and would like to show the progress in a UIProgressView. I can set the initial with:

[loadingProgressView setProgress: 0.00];

..in viewDidLoad this works perfectly.

The only thing I want to do then is to add 0.1 to the bar each loop but it does not update:

 while (eOF != 99999) {

    ...

    [loadingProgressView setProgress:loadingProgressView.progress + 0.10];

 }

I have checked around but not really found anything around just updating the bar each time I loop.

Anyone that can share some advice around this?

—UPDATE—

tried this without success:

while (eOF != 99999) {

    ...

    [loadingProgressView setProgress:loadingProgressView.progress + 0.10];
    [[NSRunLoop currentRunLoop] runUntilDate:[NSDate date]];

 }
  • 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-26T22:41:46+00:00Added an answer on May 26, 2026 at 10:41 pm

    MY FINAL SOLUTION

    First, if this is the wrong way of closing this thread i do apologize!

    After a lot of testing and investigation i finally did as follows to display my UIProgressView:

    while (eOF != 99999) {
    
        ...
    
        [NSThread sleepForTimeInterval: 0.01];
        [self performSelectorOnMainThread: @selector(makeMyProgressBarMoving) withObject: nil waitUntilDone: NO];
    
     }
    
    
    
    -(void)makeMyProgressBarMoving {
        float actual = [loadingProgressView progress];
        loadingProgressView.progress = actual + receivedData;
    } 
    

    …and now finally it works perfectly 🙂

    However, thanks for all help, i learned a lot out of this.

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

Sidebar

Related Questions

Using Javascript I would like to show a working/loading image once a user hits
i would like to initialize (in Struts2) a property(data loading from a file) only
I'm loading a file: System.Drawing.Image img = System.Drawing.Image.FromFile(FilePath); Now I would like to save
I am loading a file into a array in binary form this seems to
Try loading this normal .jpg file in Internet Explorer 6.0. I get an error
while loading getfptex(got it from CTAN) batch file ,when i'm extracting this batch file
I would like for the user to be able to upload an audio file
I would like to know if there is a way to disable automatic loading
I have a UIWebView that i would like to show an activity indicator in
I'm dynamically loading a file that will indicate when to show certain words at

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.