Set the thumbImage and watch the slider-bar disappear?

Posted by Roberta on Stack Overflow See other posts from Stack Overflow or by Roberta
Published on 2010-06-14T16:09:17Z Indexed on 2010/06/14 16:12 UTC
Read the original article Hit count: 143

Filed under:
|
|
|
[sld1 setThumbImage:[UIImage imageNamed:@"Blue.png"] forState:UIControlStateHighlighted];
[sld1 setThumbImage:[UIImage imageNamed:@"Blue.png"] forState:UIControlStateNormal     ];

Would that cause the slider-bar image to disappear? Mine are all gone. (The thumb-image displays just fine.)

Apple's docs make it sounds like I can use any ONE of above 2 lines of code. (But I guess I really need both.)

And I can't find anything about "you must always do all 4":

Set the normal-state image.
Set the highlighted-state image.
Set the setMinimumTrackImage.
Set the setMaximumTrackImage.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about frameworks