UISlider thumbTintColor doesn't change on iOS 7 (fine on iOS 6)

后端 未结 4 1709
庸人自扰
庸人自扰 2021-01-08 01:41

I have an app that runs perfectly on iOS 6. I\'ve set a blinking effect to a UISlider\'s thumb this way:

-(void)startBlinkingSlider{
    isSliderBlinking = Y         


        
4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-08 02:11

    On basis of @aaronsti's answer I found that the following worked for me. Setting thumb-image to nil had no effect.

      [_slider setThumbImage:[_slider thumbImageForState:UIControlStateNormal] forState:UIControlStateNormal];
    _slider.minimumTrackTintColor = minTintColor;
    _slider.thumbTintColor = thumbTintColor;
    

提交回复
热议问题