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
  • 8,692
  • 12
  • 67
  • 123

0 Answers0