【发布时间】:2012-04-13 08:16:05
【问题描述】:
我想根据自定义button 的状态更改label 中文本的颜色。我试图通过viewdidload 来实现它,
if (dialMobileNumber.highlighted == YES)
{
txtMobileNumber.textColor = [UIColor colorWithRed:0.0 /255.0 green:160.0 /255.0 blue:224.0 /255.0 alpha:1.0];
}
但它不起作用。任何建议我该怎么做。
【问题讨论】:
标签: iphone ios uibutton uilabel