I've been looking for close to 2 hours and could not find a solid answer for this question.
I tried to use appearance mechanism but it's seems you can't change the font with it.
I've looked at the answer suggested here : How to change all UIButton fonts to custom font
There are 3 answer :
- use buttonOutlet, but this require an array which all button throughout the project most be linked to.
- using category, but from what I read it's highly discouraged to use categories in order to override existing methods.
- Using custom class that derive from UIButton, but when I try to use the supplied class and setting it in interface builder nothing happens, which cause me to believe you need to programitcally add your button.
Edit : with answer 3 if you implement the - (id)initWithCoder:(NSCoder *)aDecoder method of uibutton this enables you to simply change the class in interface builder, but you still need to do it for all the button in the project.
Does anyone have any new idea?