UIButton setTitleColor:forState: question
问题 Why does the following code work... [signInBtn setTitleColor:[UIColor blackColor] forState:UIControlStateHighlighted]; [signInBtn setTitleColor:[UIColor blackColor] forState:UIControlStateDisabled]; while this does not? [signInBtn setTitleColor:[UIColor blackColor] forState:UIControlStateHighlighted|UIControlStateDisabled]; 回答1: I know this is an old question, but these answers aren't correct. When you set each separately you are saying the state property should be UIControlStateHighlighted