更新时间:2023-10-29 21:42:46
这很奇怪,min和max对我来说都很好,我甚至可以让它变为动画颜色变化。我所能建议的是重新创建滑块和@synthesize。
That is strange, both min and max work fine for me and I can even have it animate color change. All I can suggest is re-create the slider and also @synthesize.
@synthesize slider;
- (void)viewDidLoad
{
[super viewDidLoad];
[slider setMinimumTrackTintColor:[UIColor orangeColor]];
[slider setMaximumTrackTintColor:[UIColor blueColor]];
// Do any additional setup after loading the view, typically from a nib.
}