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);
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);