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
0
votes
0 answers

Swift progressBar filling on every cell-click

Each of my cells in tableView has its own progressBar which is being filled in cellForRowAt method and it works fine. My problem is whenever I select a cell, it's progress bar refreshes filling. Does anyone have an idea why and how to prevent it?…
faris97
  • 402
  • 4
  • 24
0
votes
1 answer

Why my Progress bar causes a fatal error (Swift)

Here is my code @IBOutlet weak var progressBar: UIProgressView! let progress = Progress(totalUnitCount: 10) Updating progress bar on a button-click later: progress.completedUnitCount += 1 let progressFloat =…
faris97
  • 402
  • 4
  • 24
0
votes
0 answers

How can I set progress bar in tableView once download is complete Swift

I am using Alamofire for my webServices and Alamofire download method for downloading pdf files. Everything is working fine data is coming & files also properly downloading. Only the issue is how can I set progress bar for this? I am using tableView…
Newbie
  • 360
  • 3
  • 19
0
votes
1 answer

Showing progress view when communicating with web-service

in my application start, i'm requesting data and parsing by communicating with web-service via JSON, this work takes sometime 2 seconds, so i want to show the user a UIProgressView when this work is being executed and when it's done, i will redirect…
Luca
  • 20,399
  • 18
  • 49
  • 70
0
votes
1 answer

UIProgressView not displaying progress accurately

I am using UIProgresView for displaying downloading and in label the percentage of content downloads.The function is executing every time. When I displaying the progress value it is showing properly in the console. But it is not displaying on the…
Arvind
  • 543
  • 1
  • 5
  • 17
0
votes
1 answer

UIprogressview bar using multiple colors based on progress and condition

I am currently working on a quiz based iOS application. I wanted to add a progress bar that changed colors based on if the question was answered correctly or incorrectly. Based on if it was answered correctly or incorrectly, I want only that…
jsoka1026
  • 1
  • 2
0
votes
1 answer

UIProgressView, Theading, performSelectorOnMainThread while using ASIHTTPRequest

Kinda stuck on this problem and I'm not sure, where I've gone wrong. Heres what I'm doing: Class calls: - (void)updateApplicationDataInBackground { updateView = [[UpdatingView alloc] init]; [self.view…
downed
  • 343
  • 1
  • 9
0
votes
2 answers

ContentLength of page is not available, how to calculate progress value?

i have a problem that the content-length of header is undetermined ie -1 in my case. So can anyone please give me an idea on how to calculate the progress for the progress view, so that i display the progress view as the page loads.. .. thanks in…
Zaraki
  • 3,720
  • 33
  • 39
0
votes
0 answers

UIProgressView keep going thinner when reloading tableview

I have table view loading data from URL. I create custom cell containing UIProgressView with below values : let slider : UIProgressView = cell1.contentView.viewWithTag(13) as! UIProgressView slider.transform = slider.transform.scaledBy(x: 1, y:…
Ali Alzahrani
  • 529
  • 1
  • 6
  • 29
0
votes
2 answers

UIProgressView update fail with UINotification

I try to solve this problem for several days now I have to ask you... I've got a View (and a ViewController) with a UITableview. There is a TableViewController for that table which is generated in the ViewController. The TableViewController calls a…
tamasgal
  • 24,826
  • 18
  • 96
  • 135
0
votes
1 answer

Sync a stroke fill animation based on a UIProgressView status?

Currently we have a circular progress bar that is working properly, for testing purposes it is activated by a tap gesture. func createCircleShapeLayer() { let center = view.center if UIDevice.current.userInterfaceIdiom == .pad { …
SwiftyJD
  • 5,257
  • 7
  • 41
  • 92
0
votes
1 answer

Swift 4 - UIProgressView coming up as UIView

Putting a ProgressView into a ViewController. When I drag the ProgressView over to create an outlet the option comes up as UIView and not UIProgressView. What am I doing wrong? Using Swift 4/Xcode 10.2.1
Edward Hasted
  • 3,201
  • 8
  • 30
  • 48
0
votes
2 answers

Constraints for progress bar and label together in IOS Swift

I need to show a progress bar and a label adjacent to each other horizontally based on some condition and based on a different condition, I need to show label and progress bar one below the other vertically. Third condition is I hide the label and…
Rami
  • 115
  • 1
  • 2
  • 8
0
votes
2 answers

How can I shape a subview to it's superview in swift?

I am trying to add a UIProgressView along the top of a UIView. There is a border and rounded corners on the UIView. Currently it looks likes this: How can I get the UIProgressBar corners to follow those of the UIView? The UIProgressView is a…
Will Taylor
  • 511
  • 1
  • 6
  • 14
0
votes
2 answers

UIProgressView is not updating, but the title is

This one is a real head scratcher, I am using an operation queue like so: let queue = OperationQueue() queue.qualityOfService = .userInteractive queue.addOperation { generator = BillGenerationv3(procedures: procedure) batchPrinting =…
Hajji Daoud
  • 157
  • 1
  • 8