0

I have a string "abcdef" that I want to convert to a hex int 0xabcdef in swift. Any one have any good solutions? It would be nice if I could do something like:

var string = "abcdef";
var value = string.toInt(16);
Chase Roberts
  • 9,082
  • 13
  • 73
  • 131

0 Answers0