Set button type
问题 I am creating a button programatically and I would like to know how to set that button's UIButtonType. This is how I am creating my button: let headerPlusButon:UIButton = UIButton(frame: CGRectMake(5, tableView.frame.width - 30, 20, 20)) headerPlusButon.addTarget(self, action: "paymentAddButtonTapped", forControlEvents:.TouchUpInside) There is no "setButtonTypeFor..." method like how you would change the title's text and obviously this doesn't work: headerPlusButon.buttonType = UIButtonType