开发者

Interface Builder background color => clear color?

开发者 https://www.devze.com 2022-12-26 21:29 出处:网络
I\'ve setup some background colors for my Labels in order to position them. Now that they are well in place, I would like开发者_如何学Python to reset their background color to none, or clearColor.

I've setup some background colors for my Labels in order to position them. Now that they are well in place, I would like开发者_如何学Python to reset their background color to none, or clearColor.

But I don't find any way to achieve this in IB, I don't find any "no color" color...

Is there any way to do this without re-coding color at runtime?


Set Opecity = 0 in Background option in IB


If you are working in xcode 4

  1. Select your label whose color you want to clear
  2. In the Attributes Inspector in Inspector Window select the "clear color" option in the "Background" drop down menu. The same menu used to set the color of the labels.


Can you give an alpha value? Try making it transparent :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号