Swift
button.setTitle(titleString, forState: controlState)
Objective C
[button setTitle:(NSString *) forState:(UIControlState)];
To set the default title to "Hello, World!"
Swift
button.setTitle("Hello, World!", forState: .normal)
Objective C
[button setTitle:@"Hello, World!" forControlState:UIControlStateNormal];