title: What is the easiest way to get a hex color code from a set of color percentages in Objective-c?
body: <p><br>
  What is the best way to get a hex color code from a set of three RGB percentages? For example:</p>
  
  <pre><code>[self getHexFromRed:0.5 Green:0.5 Blue:0.5]; // returns @"7F7F7F"
  </code></pre>
  
  <p>I've found several functions for going the other way (creating a color from a hex code), but I can't seem to find any easy way to do this...</p>
  
  <p>Thanks for any help,<br>
  Chris</p>