I am changing UIButton font size but it does not effect.
UIButton*headingButton=[UIButton buttonWithType:UIButtonTypeCustom];
headingButton.frame=CGRectMake(182, 4, 450, 42);
[headingButton setTitleColor:[UIColor colorWithRed:36/255.0 green:71/255.0 blue:113/255.0 alpha:1.0] forState:UIControlStateNormal];
I cant see in this code that u are changing font size but anyway, this can be done like so:
or
Update: plus you also need to see if the font u are setting exists in your app to check just do this:
If it doesnt exist, you need to drag the otf file into ur project and also add the “Fonts provided by application” in info.plist