Set UIButton title UILabel font size programmatically

syam s picture syam s · Sep 23, 2009 · Viewed 331.4k times · Source

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

Answer

Vladimir picture Vladimir · Sep 23, 2009
button.titleLabel.font = [UIFont systemFontOfSize:size];

should help