草庐IT

superDuperSpecialColor

全部标签

ios - UIButton 标题颜色选择和突出显示

我正在尝试将UIButton的titleColor设置为特定的颜色,当它被选中和突出显示时,但是,我需要设置按钮当用户按下UIButton时被选中。我是这样设置的:[buttonsetTitleColor:normalColorforState:UIControlStateNormal];[buttonsetTitleColor:superDuperSpecialColorforState:UIControlStateHighlighted];[buttonsetTitleColor:superDuperSpecialColorforState:UIControlStateSelect