Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing only the size of a UIFont on a UIButton

Tags:

iphone

ipad

What is the fastest/simplest way to change only the size of the existing font on a UIButton? (pointSize is read-only)

Thanks in advance.

like image 607
mcPragma Avatar asked Mar 29 '10 12:03

mcPragma


1 Answers

UILabel* titleLabel = button.titleLabel;
titleLabel.font = [titleLabel.font fontWithSize:12345];
like image 170
kennytm Avatar answered Nov 11 '22 04:11

kennytm