Wie wird die Titeltextfarbe von UIButton festgelegt?

Ich habe versucht, die Farben des Texts für eine Schaltfläche zu ändern, aber er bleibt weiterhin weiß.

isbeauty = UIButton()
isbeauty.setTitle("Buy", forState: UIControlState.Normal)
isbeauty.titleLabel?.textColor = UIColorFromRGB("F21B3F")
isbeauty.titleLabel!.font = UIFont(name: "AppleSDGothicNeo-Thin" , size: 25)
isbeauty.backgroundColor = UIColor.clearColor()
isbeauty.layer.cornerRadius = 5
isbeauty.layer.borderWidth = 1
isbeauty.layer.borderColor = UIColorFromRGB("F21B3F").CGColor
isbeauty.frame = CGRectMake(300, 134, 55, 26)
isbeauty.addTarget(self,action: "first:", forControlEvents: UIControlEvents.TouchUpInside)
self.view.addSubview(isbeauty)

Ich habe auch versucht, die Farben Rot, Schwarz und Blau zu ändern, aber es passiert nichts.

Antworten auf die Frage(6)

Ihre Antwort auf die Frage