我在IBAction按钮B下尝试了sender.ButtonA.setTitle(“Title”,forState:UIControlState.Normal),但它无法工作..无论如何它只是猜测..
因此,您需要像创建IBAction一样制作按钮的IBOutlet.然后你可以这样称呼它:
yourButton.setTitle("Title",forState: UIControlState.Normal)@H_502_22@