views:

1018

answers:

1

I am using a slider in my app. It has the default color black I want to change it to brown.

I followed the 'Changing sliders appearance in 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 on this.

+2  A: 

check UICatalog example.you can find a lot of info about creating different controls, including custom, there.

Morion
thanks it really helped me
Ankit Sachan
excellent suggestion - answered alot of questions for me! thnx
Louie