In Obj-C I used to convert an unsigned integer n to a hex string with
NSString *st = [NSString stringWithFormat:@\"%2X\", n];
I tried for
In Swift there is a specific init method on String for exactly this:
init
String
let hex = String(0xF, radix: 16, uppercase: false) println("hex=\(hex)") // Output: f