I have a simple ASCII string and i want to convert it to hexadecimal (base16). I\'m using xCode 7 (so i\'m on IOS9) but i can\'t find any solution anywhere.
I tried to c
Great answer above. Just for clarification, it's implemented like this:
let hexRepresentation = myASCIIString.utf8.map{ $0 }.reduce("") { $0 + String($1, radix: 16, uppercase: false) }