title: How do I create a bold UIFont from a regular UIFont?
body: <p>If I have a <code>UIFont</code> 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</p>
  
  <pre><code>UIFont *boldFontFromFont(UIFont *input)
  {
      return [input derivedFontWithFontWeight:UIFontWeightBold];
  }
  </code></pre>
  
  <p>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.)</p>
  
  <p>Thanks in advance.</p>