プリセットのテキスト フォントと色がUIButton
あり、タップ ボタンをタップするとすぐに変更する必要があります。
私は試します:
- (IBAction)tapAction : (id)sender
{
// determine button from tag ..
[crtBtn setTitleColor:self.selectedTextColor forState:UIControlStateSelected];
[crtBtn setTitleColor:self.selectedTextColor forState:UIControlStateNormal];
[crtBtn setTitleColor:self.selectedTextColor forState:UIControlStateApplication];
[crtBtn setTitleColor:self.selectedTextColor forState:UIControlStateHighlighted];
[crtBtn setNeedsDisplay];
}
これを修正する方法はありますか?