I\'ve created a wide UIButton with Interface Builder (Xcode 4), added in a dummy 5 character title (e.g. Click) and then changed the title text programmatically later.
O
You need to use the UIButton
method setTitle:forState:
[self.myButton setTitle:@"Correct New Title" forState:UIControlStateNormal];
as this will correctly update the size and position of the buttons label. Where as just setting the title with self.myButton.titleLabel.text = @"Wrong New Title";
will not.