[英]UISlider minimum and maximum track tint clear color iOS 7.1 bug
I seem to be having an issue that I was not having using iOS 7.0 in my app, it now only appears on iOS 7.1. 我似乎遇到了一个问题,即我没有在我的应用程序中使用iOS 7.0,它现在只出现在iOS 7.1上。 The problem I'm having is that when I set the minimum and maximum
trackTintColor
properties to a clear color, I'm now left with what I call an "artifact" to the left of the UISlider
that was not present on iOS 7.0. 我遇到的问题是,当我将最小和最大
trackTintColor
属性设置为一个清晰的颜色时,我现在留下了我称之为UISlider
左侧的“工件”,这在iOS 7.0中是不存在的。 I've tried to iterate through the sublayers and or subviews to set this "artifact" to a clear color, but I cannot seem to hide it. 我试图遍历子图层或子视图以将此“工件”设置为清晰的颜色,但我似乎无法隐藏它。 I'm attaching a screenshot below with an arrow pointing to the "artifact".
我在下面附上一个截图,上面有一个指向“神器”的箭头。
Any help is greatly appreciated! 任何帮助是极大的赞赏!
Okay so I solved this already by using these two lines of code replacing the trackTintColor properties altogether: 好的,所以我已经通过使用这两行代码完全取代了trackTintColor属性来解决这个问题:
[self.colorSlider setMinimumTrackImage:[UIImage new] forState:UIControlStateNormal];
[self.colorSlider setMaximumTrackImage:[UIImage new] forState:UIControlStateNormal];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.