I am using a slider in my application. It has a black color by default, I want to change it to brown.
I followed the "Change Slider Changes in the SDK Help"
I used the code
NSString *path = [[NSBundle mainBundle] pathForResource:@"sliderBrown"
ofType:@"png"];
UIImage *minimumTrackImg = [[UIImage alloc] initWithContentsOfFile:path];
[voiceLevelSlider setMinimumTrackImage:minimumTrackImg
forState:UIControlStateSelected];
but in this case my slider just disappeared.
Please enlighten me about this.
source
share