So I can do this:
var stringNumb: NSString = \"1357\" var someNumb: CInt = stringNumb.intValue
But I can\'t find the way to do it w/ a
I'd use:
var stringNumber = "1234" var numberFromString = stringNumber.toInt() println(numberFromString)
Note toInt():
toInt()
If the string represents an integer that fits into an Int, returns the corresponding integer.