Questions tagged [uiprogressview]

UIProgressView is an iOS user interface element that depicts the progress of a task over time.

UIProgressView is an iOS user interface element that depicts the progress of a task over time. It is most commonly used to show the current progress of an upload/download from the network or a long-running computation.

As of iOS 5, the track (the background) and progress (the bar itself) images can be customized via .

For more information, please refer to the Apple Documentation for UIProgressView.

541 questions
4
votes
1 answer

UIProgressView won't update even though main thread seems to be running fine

I have my main thread where I call a method which loads data (takes a while). I call this method with performSelectorInBackground and pass the delegate. The data loading method calls back regularly to update the progress, it calls a method in the…
omsid
  • 77
  • 1
  • 6
4
votes
2 answers

Upload Stream Requests and UIProgressView, Swift 3

I would like to track the progress of videos uploaded through a stream request with a UIProgressView. Unfortunately, I am not using Alamofire, so I'm not sure if URLSession has this ability. Below is relevant code from my application. func…
iMoment
  • 243
  • 1
  • 4
  • 14
4
votes
2 answers

Negative value in Progress Block during file download

I want to download pdf file. When I download small pdf file then I get plus value but when i download large file then I get minus value using afnetworking. here is my code: - (IBAction)download:(id)sender { NSURLRequest *request =…
Jigar
  • 1,801
  • 1
  • 14
  • 29
4
votes
1 answer

How to set progress in UIProgressView

I have a problem calculating progress for my UIProgressView. My float value has no effect on the progress. I tried to set progress manually it works fine but if I try to calculate it it doesn't work. Here is my code : - (void) initProgressbar { …
user3405644
  • 195
  • 1
  • 2
  • 11
4
votes
0 answers

Callback for when UIProgressView finished animating

Is there any way to detect when a UIProgressView has finished updating via the setProgress: animated: method?
Gerard
  • 4,818
  • 5
  • 51
  • 80
4
votes
3 answers

Create Square Rather Than Rounded Edge Effect UIProgressView

I have a UIProgressView that I am trying to make have square rather than rounded edges. I don't see any obvious way to do this, so my thought is to make the progress image itself a bit larger than its square frame, so that the progress image is…
jac300
  • 5,182
  • 14
  • 54
  • 89
4
votes
2 answers

How to determine the size (in bytes) of a file downloading using NSURLConnection?

I need to know the size of the file I am downloading (in bytes) into my app using NSURLConnection (GET). Here is my bytes recieved code below if it helps. What I need to know is how to get the filesize in bytes so that I can use it to show a…
RexOnRoids
  • 14,002
  • 33
  • 96
  • 136
4
votes
2 answers

How do i set progress image in UIProgressView

I am trying to set Progress image and Track image for UIProgress view using the designer, preview screen shows me the desired view with track image as the background of the progress bar and Progress image used for progress bar. But when i run my…
akshay202
  • 586
  • 1
  • 5
  • 23
4
votes
2 answers

set progress view in the loop, or updating progress view

for (int i=0; i<[array count]; i++) { NSError *error; NSArray *ipaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *idocumentsDir = [ipaths objectAtIndex:0]; NSString *idataPath =…
razesh
  • 487
  • 4
  • 15
4
votes
1 answer

UIProgressView setProgress won't stop animating

I seem to have the opposite problem to most people. I'm calling setProgress on my UIProgressView (which is added to my cell view). I'm calling it with NO animation but the change seems to be animated and I can't seem to switch it off. What I see is…
kingrolo
  • 2,857
  • 2
  • 16
  • 11
4
votes
2 answers

Xcode UIProgressBar does not increment

I am trying to increment progress bar and show percentage on a label. However, both remains without changes when "incrementaProgres" function is called. IBOutlets are properly linked on xib and also tested that, when function is called, variables…
Jaume
  • 3,672
  • 19
  • 60
  • 119
3
votes
1 answer

AFNetworking setUploadProgressBlock not behaving goes straight to 100%

I am using the AFNetworking Framework to facilitate photo uploads to a website. The uploads work fine, but I need to show progress in a UIProgressView. Problem is, the progress moves from 0 to 100% a second or so after the upload starts and sits…
HackyStack
  • 4,887
  • 3
  • 22
  • 28
3
votes
3 answers

iOS Stateless/Valueless Progress Bar?

I'm looking to get a stateless/valueless UIProgressView or other kind of progress bar in iOS: I've tried looking up some documentation but couldn't find anything relevant to my issue. If any of you have any recommendations i'd love to hear those…
Shai Mishali
  • 9,224
  • 4
  • 56
  • 83
3
votes
3 answers

Alert + ProgressView (Activity Indicator) in SwiftUI

Is there any way to add Activity View (Indicator) into SwiftUI Alert somewhere? I'm just curious because I haven't found any appropriate answer on such question. I need something like this: I'm using iOS 14 SwiftUI Alert with optional state that…
3
votes
1 answer

SwiftUI ProgressView is not updating progress value within Button closure

It’s a rather simple example I am creating in Swift Playgrounds on iPad, but I had the same problem in a larger Xcode project. I try to update the progress view whenever I click on the button in order to show the user how many (in this case) names…