In interface builder, holding Command + = will resize a button to fit its text. I was wondering if this was possible to do programmatically before the
If your button was made with Interface Builder, and you're changing the title in code, you can do this:
[self.button setTitle:@"Button Title" forState:UIControlStateNormal]; [self.button sizeToFit];