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
1
vote
1 answer

How can I update UIProgressVeiw in Swift3 on viewDidLoad() Method?

I have created UIProgressView and UILabel programatically. I want my progressbar to get update every second and show the progress on screen and also update the label value. All of this should done on the call of viewDidLoad().
user7342483
1
vote
1 answer

Displaying download progress in reusable cells

I am trying to display download progress in my collectionview cells. Im currently using the parse progressblock which has an instance of the cell and updates the progress bar. }, progressBlock: { (percent) in self.mainQueue.addOperation { …
Pippo
  • 1,439
  • 1
  • 18
  • 35
1
vote
3 answers

UIProgressView loading bar with percentage

I want to make a loading bar in Swift 3 for my iOS project. I'm doing a web view for the moment and need to do this loading bar to show in between the actions. I know it is fake loading bar and I saw code in Objective-C and tried to make something…
Matej Marić
  • 125
  • 1
  • 12
1
vote
1 answer

UIProgressView doesn't update <=0.5 value after Changing ProgressTintColor

I want to represent a countdown timer. The progress view should change color for <70% - Yellow, <50% -red. But UIProgressView doesn't update after changing ProgressTintColor.(For 0 < x < 0.5). But It works fine when I comment [self.progressView…
Lal Krishna
  • 15,485
  • 6
  • 64
  • 84
1
vote
1 answer

How to get the exact point of objects in swift?

I'm using a UIProgressView and want to stick a image subview to the progress % as in the image below: I want to get the co-ordinate of the progress tint and red subview as in the figure to "stick" with the progress tint, whatever the progress will…
Aashish
  • 2,532
  • 2
  • 23
  • 28
1
vote
1 answer

Displaying download Progress in iOS status bar

I would like to display the download progress in the iOS status bar the same way android does. I know we can show the activity indicator but I was thinking
java_doctor_101
  • 3,287
  • 4
  • 46
  • 78
1
vote
1 answer

Accessing ProgressView from Nested Helper Class

I have a question about nested classes and such. I have a UIView that is handling the download of JSON data onto the device, and I have a progress bar which shows the user progress. Since I have to wait for the entire download to finish before going…
1
vote
2 answers

How to stop/cancel a UIProgressView progress animation?

I have a UIProgressView which must be be updated while the user holds a button. For a smooth animation I opted to use UIView.animateWithDuration instead of a Timer to update the progress. What I expect to achieve is: the progress increases while the…
GustavoAzOl
  • 299
  • 2
  • 12
1
vote
1 answer

Progress View LOOP

I want this progress view to basically "reset" when its done. Tried to reset the count to 0 and it does reset but for each reset the timer just becomes faster and faster. .h @property (nonatomic, strong) NSTimer *myTimer; @property (weak, nonatomic)…
1
vote
0 answers

Can UIProgressView be inherited?

Can UIProgressView be inherited? I created a sub-class of UIProgressView; it works well. But the console shows the following errors when the sub-class calls [super init] or [super initWithFrame:frame]: : CGContextAddPath: invalid context 0x0.…
Bluelich
  • 11
  • 2
1
vote
1 answer

UIProgressView defaulting to top left corner of main view

My UIProgressView is going to the top right hand corner of the main view - even though I set it as a subview of a UIView (which in turn is a subview of the main view). And even if I setFrame:. Any ideas? if(downloadBar == nil){ downloadBar =…
Thomas Clayson
  • 29,657
  • 26
  • 147
  • 224
1
vote
3 answers

Width and height of progressView

How can I create progressView with width 100 and height 200. And rotate progressView on 90 degrees? It does not work together. Or progressView is turned by 90 or change size self.progressView.transform = CGAffineTransformMakeRotation(M_PI_2); …
user6520075
1
vote
0 answers

Swift. Reveal image when progress value of UIProgressView increases

I've created a UIProgressView: ProgressBar.frame = CGRect(x: 0, y: 0, width: width, height: height) ProgressBar.center = ProgressPos ProgressBar.trackImage = UIImage(named: "Ak") ProgressBar.progress = 0.5 ProgressBar.transform =…
Benja0906
  • 1,437
  • 2
  • 15
  • 25
1
vote
1 answer

UIProgressView progress not updating even when run in the main thread

UIProgressView progress not updating in iOS8&9 but work in iOS7 even when run in the main thread. My code is the following, hope have a help. - (void)viewDidAppear:(BOOL)animated{ [super viewDidAppear:animated]; self.timer = [NSTimer…
Winston
  • 49
  • 8
1
vote
3 answers

UIWebView started twice - IOS

I am using the below to add a ProgressView while the UIWebView is loading and dismissing it when it's done. The problem is the UIWebView is started twice and also the ProgressView, So when the page is done loading only one ProgressView is dismissed…
Haroun SMIDA
  • 1,106
  • 3
  • 16
  • 32