title: How to get the RGB Code (INT) from an UIColor in Swift
body: <p>I would like to get the RGB Value of an UIColor in Swift:</p>
  
  <pre><code>let swiftColor = UIColor(red: 1, green: 165/255, blue: 0, alpha: 1)
  println("RGB Value is:");
  println(swiftColor.getRGB()); &lt;&lt;&lt;&lt;&lt;&lt; How to do that ?
  </code></pre>
  
  <p>In Java I would do it as follows:</p>
  
  <pre><code>Color cnew = new Color();
  int iColor = cnew.rgb(1, 165/255, 0);
  System.out.println(iColor);
  </code></pre>
  
  <p>How should I get this value?</p>