Xcode Color picker automatically changing HSB color

爱⌒轻易说出口 提交于 2020-01-05 03:34:16

问题


I am having a strange issue using the integrated color picker of Xcode (version 6.3):

After I assign a color to a any item (in my case a UIButton) and then try to enter a new hue value, just by clicking the textfield the color changes. All three values (hue, saturation and brightness) change. Funny enough this change is visible as the color of the button changes, but the actual values stay the same until expecting a color in another view and then switching back to the button inspection, the value sliders do kind of thingy in between, they change a little bit, stay neither on the old nor the "new" value.

  1. step: set the color (in "Levelselect"; "Play" is there for comparison)

    The correct h, s and b values are set.
  2. step: click on one of the three values, in this case "hue"

    As you can see the color changes, the sliders change a tiny bit but the values stay the same.
  3. step: inspect the color of another item or do some crazy clicking around to tell make xcode actually read the color again

    Look at the new values and be confused what happened.

My questions now are:

  • Is this a known issue?
  • Is there a workaround?
  • Am I doing something wrong?
  • Can anybody reproduce that issue or is it somehow related to my machine/setup?

回答1:


Next to "HSB Sliders" dropdown you can see a settings wheel. Tap in it and set "Generic RGB"



来源:https://stackoverflow.com/questions/28975262/xcode-color-picker-automatically-changing-hsb-color

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!