Set title

suggest change

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];

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents