我正在设置文字颜色 UIButton
headingButton.titleLabel.textColor = [UIColor colorWithRed:36/255.0
green:71/255.0
blue:113/255.0
alpha:1.0];
Run Code Online (Sandbox Code Playgroud)
它没有改变颜色,我正在使用的另一个代码中使用相同的代码.