title: Change color of detail disclosure button dynamically in code
body: <p>I know similar question(s) have been asked before, but most answers say create a new detail disclosure button image with the required color (e.g. <a href="https://stackoverflow.com/questions/4655106/how-to-change-color-of-detail-disclosure-button-for-table-cell">How to change color of detail disclosure button for table cell</a>).</p>
  
  <p>I want to be able to change it to any color I choose, dynamically, at run-time, so using a pre-configured image is not viable.</p>
  
  <p>From reading around, I think there may be a few ways to do this, but I'm not sure which is the best, or exactly how to do it:</p>
  
  <ol>
  <li><p>Draw the required color circle in code and overlay with an image of shadow round outside of circle and arrow right (with clear alpha channel for rest, so drawn color circle is still visible)</p></li>
  <li><p>Add image of shadow round outside of circle in UIImageView, and using as a mask, flood fill within this shadow circle, then overlay the arrow.</p></li>
  <li><p>Add greyscale image, mask it with itself, and overlay the required color (e.g. <a href="http://coffeeshopped.com/2010/09/iphone-how-to-dynamically-color-a-uiimage" rel="nofollow noreferrer">http://coffeeshopped.com/2010/09/iphone-how-to-dynamically-color-a-uiimage</a>), then overlay that with arrow image.</p></li>
  </ol>
  
  <p>What is the best way, and does anyone have any code showing exactly how to do it ?</p>