Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the progress tint color in UIProgressView

I would like to know how to set UIProgressView tint color. Sometimes, depending on the color, the default height does not allow to see properly the progress. How to fix that issue?

like image 205
Javier Calatrava Llavería Avatar asked Jan 07 '15 08:01

Javier Calatrava Llavería


1 Answers

You can set tint color of track and progress bar by this;

For track color:

progress.trackTintColor = [UIColor whiteColor]; 

Progress bar:

progress.progressTintColor = [UIColor redColor];

Hope this helps.. :)

like image 140
Rashad Avatar answered Sep 18 '22 14:09

Rashad