I've been wondering, is there a nice way to make `UIButtons` with multi-line `titleLabel` in Interface Builder? I've found none and puttin a separate `UILabel` on top of each button and tracking it's color on press and other events is not very straightforward. 

Maybe there are better alternatives done in code if there's no such way in IB?
['https://Stackoverflow.com/questions/18659832', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1313939/']
**Code:**

To allow multiple line you can use:

```
button.titleLabel.lineBreakMode = UILineBreakModeWordWrap;
button.titleLabel.textAlignment = UITextAlignmentCenter;
[button setTitle: @"Line1\nLine2" forState: UIControlStateNormal];

```

In **iOS 6**, `UILineBreakModeWordWrap` and `UITextAlignmentCenter` are deprecated, so use:

```
button.titleLabel.lineBreakMode = NSLineBreakByWordWrapping;
button.titleLabel.textAlignment = NSTextAlignmentCenter;

```

**Interface Builder:**

* In interface builder select *UIButton*
* on the right side Utilities pane under *Attributes Inspector*, you'll see an option for *Line Break*
* Choose *Word Wrap*
You can do solely in Interface Builder a couple ways.

* First by simply setting the wrap feature. This offers limited customizability though.
* For more customizability, change the "Plain Text" to "Attributed Text" and then you can do most things without any code.