所以我有这段代码可以创建一个自定义 UISlider 。在 IOS 6 之前它工作正常。在 IOS 6 中,图像不显示,它显示默认滑块。有人可以解释为什么会这样吗?
[sliderFPS setMinimumTrackImage:[[UIImage imageNamed:@"camera_slider_empty.png"] stretchableImageWithLeftCapWidth:8 topCapHeight:0]
forState:UIControlStateNormal];
[sliderFPS setMaximumTrackImage:[[UIImage imageNamed:@"camera_slider_full.png"] stretchableImageWithLeftCapWidth:8 topCapHeight:0]
forState:UIControlStateNormal];
[sliderFPS setThumbImage:[UIImage imageNamed:@"camera_fps_slider_button"]
forState:UIControlStateNormal];