我更改了图片的UISlider按钮的滑动。问题是不合适,我该如何解决?
link img - > http://i.imgur.com/5L5IsB6.png
- (void)viewDidLoad {
[super viewDidLoad];
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
zoomValue = [[defaults objectForKey:@"music.zoom.value"] floatValue];
self.slider.value = zoomValue;
[self.slider setThumbImage:[UIImage imageNamed:@"btn-tamanho-fonte"] forState:UIControlStateNormal];
}
答案 0 :(得分:0)
子类UISlider并覆盖thumbRectForBounds:trackRect:value:
。