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
15
votes
1 answer

How to create non rounded corner UIProgressView in iOS

I have subclassed UIProgressView as: import UIKit class MyProgressView: UIProgressView { override func sizeThatFits(size: CGSize) -> CGSize { return CGSizeMake(size.width, 6) } } and I am using it as: let progress =…
Byte
  • 629
  • 2
  • 11
  • 29
13
votes
3 answers

iOS UIProgressView with gradient

is it possible to create a custom ui progress view with a gradient from left to right? I've tried it with the following code: let gradientLayer = CAGradientLayer() gradientLayer.frame = self.frame gradientLayer.anchorPoint = CGPoint(x:…
user3532505
  • 429
  • 1
  • 7
  • 18
11
votes
4 answers

Swift - UIProgressView is not smooth with NSTimer

So I am using an NSTimer to let the user know the app is working. The progress bar is set up to last 3 seconds, but when running, it displays in a 'ticking' motion and it is not smooth like it should be. Is there anyway I can make it more smooth -…
dwinnbrown
  • 3,789
  • 9
  • 35
  • 60
11
votes
2 answers

Add UIProgressBar to UITableViewCell

I have a requirement to display a UIProgressBar in UITableviewCell while streaming an audio clip. I tried running a NSTimer and then trying to update the progress view, but its not working. This is my code. Please let me know whats wrong with this…
smartsanja
  • 4,413
  • 9
  • 58
  • 106
11
votes
3 answers

How to use UIProgressView while loading of a UIWebView?

i am developing an application where i am loading a urlrequest in the UIWebView and it happened successfully. But now i am trying to display a UIProgressView when the loading is in progress( starting from 0.0 to 1.0), which is changed dynamically…
raaz
  • 12,410
  • 22
  • 64
  • 81
11
votes
1 answer

UIProgressView unprogressed color

I have a UIProgressView which I want to look like this image. I have set the progress color but I am not sure to set unprogressed color (white color in image).
Nitish
  • 13,845
  • 28
  • 135
  • 263
10
votes
4 answers

Custom UIProgressView in iOS7 not possible?

I know this was already asked about a hundred times here, but I couldn´t find a suitable answer in the other questions. My problem is the height of my UIProgressView. While everything worked as expected in iOS6, now in iOS7 nothing goes right. I…
Philipp Otto
  • 4,061
  • 2
  • 32
  • 49
9
votes
2 answers

setProgress is no longer updating UIProgressView since iOS 5

I have a little trouble with a progress bar since iOS 5 came out. The code below was working fine before iOS 5 but with iOS 5 the progress bar is no longer displaying the new progress that is set within a loop. The code is expected to work like…
favo
  • 5,426
  • 9
  • 42
  • 61
9
votes
2 answers

Adding progress bar under navigation bar in swift?

Say me please how to add a ProgressView under navigation bar? I try to use solution in this post: adding progress bar under navigation bar, but there code was written on ObjectiveC language... I try to translate to Swift. This is the code, which i…
Dmitry
  • 2,963
  • 2
  • 21
  • 39
9
votes
3 answers

UIProgressView with progress at low values issue

I'm running a progress bar which updates every second. It needs to run for upwards of 300 seconds so the changes in the progress bar's 'progress' variable are on the magnitude of about 0.003 per second. I've noticed a problem with low values of the…
8
votes
2 answers

UIProgressView displaying issues in iOS 7

I need UIProgressView as part of UITableView cell for one iOS 7 application. I have added UIProgressView from code on the right side of cell like this: _progressBar = [[UIProgressView alloc]…
uerceg
  • 4,637
  • 6
  • 45
  • 63
7
votes
1 answer

Accurate progress displayed with UIProgressView for ASIHTTPRequest in an ASINetworkQueue

Summary: I want to track the progress of file downloads with progress bars inside cells of a tableview. I'm using ASIHTTPRequest in an ASINetworkQueue to handle the downloads. It works, but the progress bars stay at 0%, and jump directly at 100% at…
Guillaume
  • 21,685
  • 6
  • 63
  • 95
7
votes
2 answers

UIProgressView not animating progress on iOS 13

I am not seeing the animation of a UIProgressView with Xcode 11.0/Swift 5/iOS 13: private let timerProgressView: UIProgressView = { let timerProgressView = UIProgressView() timerProgressView.progressTintColor = white …
Samy
  • 1,172
  • 9
  • 13
7
votes
1 answer

how to make UIProgressView on the UITableViewCell change immediately?

I put a UIProgressView on a UITableViewCell, like that: UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"downloadcell"]; if(cell==nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle …
Tinyfool
  • 1,460
  • 2
  • 18
  • 40
7
votes
2 answers

iOS 7 tiny progress bar can be changes as iOS6 style?

My iOS app was working on iOS 6 but when you build the app with xcode 5 using iOS7 device the progress bar style is changed and I can't return it as previous iOS6 style or even to change the height of the Progress View (Progress Bar). Is there any…
Emrah Mehmedov
  • 1,492
  • 13
  • 28
1
2
3
36 37