Swift : Convert (cast) Int to String ?
Problem :
How to convert (cast) Int to String in Swift programming language ?
Solution :
Just cast the Int variable with String() functon. For example :
let x : Int = 100
var str = String(x)
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+36.4k Golang : Validate IP address
+14.5k Golang : Execute function at intervals or after some delay
+29.4k Golang : Login(Authenticate) with Facebook example
+13.3k Golang : Verify token from Google Authenticator App
+17.9k Golang : Get all upper case or lower case characters from string example
+5.2k JavaScript/JQuery : Redirect page examples
+10.6k Golang : Underscore string example
+7.5k Golang : Set horizontal, vertical scroll bars policies and disable interaction on Qt image
+13.9k Golang : convert rune to unicode hexadecimal value and back to rune character
+13.7k Golang : Convert spaces to tabs and back to spaces example
+17.5k Golang : Clone with pointer and modify value
+46.3k Golang : Encode image to base64 example