Comments (5)
I creat the cell with xib and set color in awakeFromNib
from dacircularprogress.
Would you be able to provide a simple example application replicating the issue?
from dacircularprogress.
FWIW:
I am using DACircularProgress in custom table cells coming from a nib and I have no problem setting the trackTintColor
and progressTintColor
properties. In fact, I'm using different colors in different rows of the same table and it works perfectly.
In my code I am essentially setting the colors in the -tableView:cellForRowAtIndexPath:
UITableView delegate method. In more detail: I am setting a data model on the table cell in that method, and the setter for that model in the custom table cell class triggers the following calls to set the progress indicator colors and some other properties:
self.circularProgressView.roundedCorners = NO;
self.circularProgressView.trackTintColor = [UIColor colorWithRed:200/255.0f green:200/255.0f blue:200/255.0f alpha:1]; // very light gray
self.circularProgressView.progressTintColor = [self getModeColor];
self.circularProgressView.thicknessRatio = 0.2f;
The -getModeColor
is a custom method returning different UIColor* based on some conditions.
Hope this helps.
Erik
from dacircularprogress.
The sample project is:
https://github.com/cssmhyl/TestForCircularProgress
The bug only appears on iOS7.(iOS8 is ok)
![circalur_iphone5_ios8](https://cloud.githubu
![circalur_iphone4s_ios7]%28https://cloud.githubusercontent.com/assets/6084247/7488886/c7051816-f402-11e4-8ce6-2a12de2b32f2.PNG%29
sercontent.com/assets/6084247/7488884/bcb5de68-f402-11e4-9cd7-d1ab9aa3b44f.png)
from dacircularprogress.
Hi cssmhy,
as @vanderneut has explain, you should set color in '-tableView:cellForRowAtIndexPath:' ,
I see in sample project of you, you set color in function 'awakeFromNib' , and table view caching view for faster display, so that cause problem.
Hope this helps.
from dacircularprogress.
Related Issues (20)
- track tint colour does not work on iPad air. HOT 3
- How to change the start position and end position ? HOT 1
- Indeterminate speed on instantiation HOT 2
- Animate from custom value HOT 3
- Warning in Xcode 6.3 beta HOT 2
- thicknessRatio under default value HOT 3
- can I use this DACircularProgress with three color gradient HOT 3
- Should update screenshot sample HOT 1
- Could make it look like ProgressHUD HOT 1
- Progress jumps in 2.3 HOT 4
- Setting indeterminate property when progress view has no window has no effect HOT 1
- indeterminate does not work in swift HOT 1
- is it possible to set maximum and minimum value?
- The track animation flickers while loading.
- iOS 10 compatibility HOT 1
- Allow option to set animation removedOnCompletion to prevent animation stopping when navigating away.
- Set target value dynamically
- Stop animation on some position
- How to solve memory leak of this issue? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dacircularprogress.