UIButton - How to set Minimum Font Size?
button.titleLabel.numberOfLines = 1;button.titleLabel.adjustsFontSizeToFitWidth = YES;button.titleLabel.lineBreakMode = NSLineBreakByClipping;
copied from Set minimum font size UIButton with margin
Anoop's answer works like a charm. You can also do this in IB using User Defined Runtime Attributes:
- choose Button in IB
- Add Attribute
- KeyPath: titleLabel.adjustsFontSizeToFitWidth
- Type: Boolean
- Value: true
Screenshot from IB
Set Minimumfontsize is not available in iOS8 use minimumscalefactor instead.