Center Multi-Line Text on UIButton using IB
How do you center text line-by-line in a UIButton using Interface Builder? I am scouring the options and just don't see it. Here's the button: You can't set the text to be centered in your nib. But you can change the alignment in your code: - (void)viewDidLoad { [super viewDidLoad]; self.myButton.titleLabel.textAlignment = UITextAlignmentCenter; } I know this is an old question, but I came across it in my own attempt to center the multi-line text of a UIButton in IB. What I found is that by default, when "title" is set to "plain" and "line break" is set to "word wrap" the longest line of the