I\'d like to know how can I convert a String in an Int array in Swift. In Java I\'ve always done it like this:
String myString = \"123456789\"; int[] myArray = n
var myString = "123456789" var myArray:[Int] = [] for index in 0..
To get the iterator pointing to a char from the string you can use advance
iterator
char
string
advance
The method to convert string to int in Swift is toInt()
int
toInt()