Weird colors in XCode Interface Builder?

前端 未结 4 1923
忘了有多久
忘了有多久 2020-11-30 02:56

I have really weird problem with colors in interface builder. I set a color on one UI element, for example UIView, and then I want the same color on UIButton...but when I tr

4条回答
  •  春和景丽
    2020-11-30 03:08

    The currently selected item in interface builder will be slightly different to its actual colour - it has a darkened mask applied to it to highlight the fact that it is selected. You need to click somewhere else in the window to unselect the item, it's real colour will then be shown. I've fallen into this trap myself.

提交回复
热议问题