碰到一个奇怪的问题。
代码中已经设置了:
-(void) setButtons{
[btn setTitleColor:[self defaultBtnTitleColor] forState:UIControlStateNormal];
[btn setTitleColor:[UIColor whiteColor] forState:UIControlStateSelected];
[btn setTitleColor:[UIColor disabledButtonTitleColor] forState:UIControlStateDisabled];}
那么按理只需要改变btn的状态,就可以自动变更title的颜色。但是,发现许多时候,将按钮设置为selected了之后,仍然没有改变title的颜色.
经过测试,发现,只有在设置btn为selected之前,先设置btn为normal,才能正确地变更title的颜色。
甚是奇怪,待研究。
UIButton的titleColor问题

Once I initially commented I clicked the Notify me when new feedback are added checkbox and now each time a remark is added I get four emails with the same comment. Is there any way you possibly can remove me from that service? Thanks! ekeekafedfcbfedc
Sorry about that. And I am sorry that I am not familiar with wordpress, maybe you know how to remove that service, and show me please.