KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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 UIFont *boldFontFromFont(UIFont *input) { return [input derivedFontWithFontWeight:UIFontWeightBold]; } How can I change the code so that it works. (The code above does not work, I just made it up to illustrate the point.) Thanks in advance.
Tags (comma-separated)
Save Edits
Cancel