【发布时间】:2011-05-16 02:09:33
【问题描述】:
如何将色调颜色设置为 uiview 背景颜色? 谢谢。
【问题讨论】:
标签: iphone uiview colors background tint
如何将色调颜色设置为 uiview 背景颜色? 谢谢。
【问题讨论】:
标签: iphone uiview colors background tint
设置UIView 视图的backgroundColor 属性:
UIView *myView;
UIColor *myTint;
...
/* initialize myView and myTint */
...
myView.backgroundColor = myTint;
...
/* release myTint, if necessary */
【讨论】:
UIView 没有 tintColor 属性。使用backgroundColor,就像使用tintColor 代替toolbar 一样,或者更清楚地解释你真正想要做什么。