How to save numbers from a string as an integer in swift -


question says all. need save string , substrings of string integer, can averaging numbers.

i think want this:

var mystring = "1234" var myint = mystring.toint()! 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -