If I have a UIFont object, is it possible to convert it to bold? I don\'t know the font name, I just have a UIFont object. What I want is a function like
You can either use
[UIFont boldSystemFontOfSize:12].
If you are using custom fonts you have to use the name directly
[UIFont fontWithName:@"Helvetica-Bold" size:17.0].
You can look up the possible font names with
[UIFont fontNamesForFamilyName:@"American Typewriter"].
In this Post: https://stackoverflow.com/a/15388946/436818 Ben M has an idea how to get the bold version dynamically. But extend the method to be sure to get the bold version (if it exists) because there are other bold versions like CondensedBold too.