I get a warning saying that setFont is deprecated?
[button setFont:[UIFont boldSystemFontOfSize:13]];
Any suggestions how to take it away p
The accepted answer works and sets the font for one button instance. In case you want to set application wide font for all UIButtons, you can do it like this:
// Set font to be used for labels inside UIButtons
[[UILabel appearanceWhenContainedIn:[UIButton class], nil] setFont:[UIFont fontWithName:@"HelveticaNeue-Bold" size:15.0]];
This was not specifically asked in the question, but in case you need to set the font for all labels (not inside UIButtons), you can do it like this:
// Set font for all UILabels
[[UILabel appearance] setFont:[UIFont fontWithName:@"HelveticaNeue" size:13.0]];