UISlider setMaximumTrackTintColor在IB中不起作用 - UISlider setMaximumTrackTintColor doesn't work in IB -开发者知识库

UISlider setMaximumTrackTintColor在IB中不起作用 - UISlider setMaximumTrackTintColor doesn't work in IB -开发者知识库,第1张

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。此外,在代碼中更改此值很有效,但這種行為對我來說就像魔術一樣。

1 个解决方案

#1


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在設備上運行時無效。

最佳答案:

本文经用户投稿或网站收集转载,如有侵权请联系本站。

发表评论

0条回复