I have a
UISlider in my window and I can't change its
setMaximumTrackTintColor in Interface Builder. 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. Also, changing this value in code works good, but that behaviour is like magic for me.
我的窗口中有一個UISlider,我無法在Interface Builder中更改其setMaximumTrackTintColor。我將此顏色設置為我需要的顏色,並且Interface Builder的預覽正常,但在模擬器和設備上,此顏色始終為RGB 183,183,183。此外,在代碼中更改此值很有效,但這種行為對我來說就像魔術一樣。
Seems like this is a bug in interface builder. I'm using Xcode 6.3.1 and was able to reproduce this as well. Min Track Tint and Thumb Tint work, but Max Track Tint has no effect when running on device.
似乎這是界面構建器中的錯誤。我正在使用Xcode 6.3.1並且能夠重現這一點。 Min Track Tint和Thumb Tint工作,但Max Track Tint在設備上運行時無效。