Custom UISlider Image disappearing?
- by Silent
Hello all i have a custom image to replace the UISLider defult button image, all works fine image shows, it does not clip off. The problem is when i use the slider to move up and down the image dissapears and some how doesnt show up anymore only sometimes. could someone have a fix?
CGRect rect = CGRectMake(16.0, 390.0, 297.0, 35.0);
slider.frame = rect;
UIImage* thumbImage = [UIImage imageNamed:@"thumb.png"];
[slider setThumbImage:thumbImage forState:UIControlStateNormal];
UIImage* leftImage = [UIImage imageNamed:@"SliderLeft.png"];
[slider setMinimumTrackImage:leftImage forState:UIControlStateNormal];
UIImage* rightImage = [UIImage imageNamed:@"SliderRight.png"];
[slider setMaximumTrackImage:rightImage forState:UIControlStateNormal];