Comment obtenir le Code RGB (INT) à partir d'un UIColor en Swift

Je voudrais obtenir la Valeur RVB d'un UIColor dans Swift:

let swiftColor = UIColor(red: 1, green: 165/255, blue: 0, alpha: 1)
println("RGB Value is:");
println(swiftColor.getRGB()); <<<<<< How to do that ?

En Java, je le ferais comme suit:

Color cnew = new Color();
int iColor = cnew.rgb(1, 165/255, 0);
System.out.println(iColor);

Comment pourrais-je obtenir cette valeur?

InformationsquelleAutor mcfly soft | 2015-02-21