ハイライトされた州の色に色を付けます。UIButton をタップまたはクリックすると、UIButton をタップまたはクリックしている間、tintColor で指定された色が表示されます。
resetButton.tintColor = [UIColor colorWithRed:0.764 green:1.000 blue:0.000 alpha:1.000];
ボタンは通常の状態では白です。しかし、ボタンをタップすると色が赤に変わりますが、それはその時だけです。
ボタンを変更する必要がある場合は、UIControlStateNormal で赤または青のように見えます。
Interface Builder またはプログラムで UIButtonType を UIButtonTypeCustom に変更します。
UIButton *resetButton = [UIButton buttonWithType:UIButtonTypeCustom];
自分で属性を変更し、丸みを帯びた角を再作成します
resetButton.backgroundColor = [UIColor redColor];
resetButton.layer.borderColor = [UIColor blackColor].CGColor;
resetButton.layer.borderWidth = 0.5f;
resetButton.layer.cornerRadius = 10.0f;