Closed nhjariwala closed 9 years ago
Hmm, that's a pain. Are you using animated colors, or is the popUpView a constant color throughout?
If you're using animated colors, could you try the following quick hack: reset the animated colors when the tab changes?
self.progressView.popUpViewAnimatedColors = …
No I am not using animated colors. Please have look my code
func initProgressPopUp() {
myProgressPopUpView.progress = 0
myProgressPopUpView.popUpViewCornerRadius = 12.0
myProgressPopUpView.font = UIFont(name: "Futura-CondensedExtraBold", size: 28)
myProgressPopUpView.popUpViewColor = UIColor(red: 0.0/255.0, green: 184.0/255.0, blue: 226.0/255.0, alpha: 1)
}
func setProgress(destination: Double) {
tar = Double(destination/100)
progress()
}
func progress() {
myProgressPopUpView.showPopUpViewAnimated(true)
let TIMES = 0.05
var progress = myProgressPopUpView.progress
if progress < Float(tar) {
progress += 0.005
self.myProgressPopUpView.setProgress(progress, animated: true)
var timer = NSTimer.scheduledTimerWithTimeInterval(TIMES,
target: self,
selector: Selector("progress"),
userInfo: nil,
repeats: false)
}
}
Thanks
Does it help to set autoAdjustTrackColor
to NO?
Let me check it and let you know in 2 min
It will change the color of my progressView. Now progressView look like this
It look same when load first time and when tab switched.
Ok, we're making progress ; )
Could you then set the progressTintColor
to the appropriate color afterwards. This might fix the problem (though it is a bit of a hack).
Bravo .... It works man .... you are life saviour :+1:
Thank you so much for your help.... ;)
Glad it's working for you now : ) Though the problem you experienced is clearly a bug. I'll have to look into it. If you are able to post a demo project that demonstrates that problem it would be really helpful – understand if this is not possible though.
All the best, Al
I will create demo project for you and send it to you soon .. But it will be in Swift version hope you don't mind about it.
Swift is good :+1:
Great .. I will send you soon. Thanks again
Hi I loved this library and thanks for such a awesome work. I have implemented it into my project and it works like charm. But I have facing some strange issue. I have used Tab on my project in which on my first tab I have used progressView into TableViewCell. When I run the project ProgressView display the same color that have been set by me it looks like below image.
But When I changed my tab (means from 1st Tab to 2nd Tab and then back to 1st Tab) then the progress colour changed it looked like below image
Don't know whats wrong with it.. Banging my head from last several hours. Thanks