3

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.

1 Answer 1

9

Check the UICatalog example. You can find a lot of info about creating different controls, including custom controls.

1
  • excellent suggestion - answered alot of questions for me! thnx
    – Louie
    Jun 30, 2010 at 22:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.