設定標題
迅速
button.setTitle(titleString, forState: controlState)
目標 C.
[button setTitle:(NSString *) forState:(UIControlState)];
將預設標題設定為 Hello World!
迅速
button.setTitle("Hello, World!", forState: .normal)
目標 C.
[button setTitle:@"Hello, World!" forControlState:UIControlStateNormal];