此可選值非彼可選值(option)
參考:馬克叔_Macro
ObjectiveC:
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setTitle:@"XXXX" forState:UIControlStateSelected|UIControlStateHighlighted];
Swift:
let button = UIButton(type: .Custom)
button.setTitle("XXXX", forState: [.Selected , .Highlighted])