简体   繁体   English

UISlider setMaximumTrackTintColor在IB中不起作用

[英]UISlider setMaximumTrackTintColor doesn't work in IB

I have a UISlider in my window and I can't change its setMaximumTrackTintColor in Interface Builder. 我的窗口中有一个UISlider ,无法在Interface Builder中更改其setMaximumTrackTintColor I set this color to one that I need, and Interface Builder's preview is ok, but on both the simulator and device this color is always RGB 183,183,183 . 我将此颜色设置为所需的颜色,Interface Builder的预览正常,但在模拟器和设备上,此颜色始终为RGB 183,183,183 Also, changing this value in code works good, but that behaviour is like magic for me. 同样,在代码中更改此值也可以很好地工作,但是这种行为对我来说就像是魔术。

Seems like this is a bug in interface builder. 似乎这是界面生成器中的错误。 I'm using Xcode 6.3.1 and was able to reproduce this as well. 我正在使用Xcode 6.3.1,也能够重现此代码。 Min Track Tint and Thumb Tint work, but Max Track Tint has no effect when running on device. 最小跟踪着色和拇指着色都可以,但是在设备上运行时,最大跟踪着色不起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM