Ios – Set UIButton title UILabel font size programmatically

cocoa-touchfont-sizeiosobjective cuibutton

I need to set the font size of the title UILabel of a UIButton programmatically.

Best Answer

button.titleLabel.font = [UIFont systemFontOfSize:size];

should help