hlarsson Posted April 10, 2008 Share Posted April 10, 2008 I've been strugling for 3 hours now trying to find a way to convert an Int to a String in Xcode. I'm working on an iPhone app (nothing fancy, just playing around with the SDK) but I can't seem to find a way to do such a simple thing as to convert between ints and strings. I can understand how it might be a bit tricky to convert from string to int but the other way around should be easy? Up until now I've only working in java where you simple do a MyInt.toString(); Any help would be greatly appreciated. I've searched the web but can't seem to find any answers...perhaps it's too obvious? Link to comment Share on other sites More sharing options...
hecker Posted April 10, 2008 Share Posted April 10, 2008 You no google so good? Query used: http://www.google.com/search?hl=en&saf...amp;btnG=Search Find your answer here: http://forums.macrumors.com/archive/index.php/t-448594.html -hecker Link to comment Share on other sites More sharing options...
hlarsson Posted April 10, 2008 Author Share Posted April 10, 2008 Haha thanks man! I think I've been up too long, I was googling "convert int to string +xcode" "typechange..." "...NSSInt to NSString...". Casting totally slipped my mind. I'll check it right away! Thanks again Link to comment Share on other sites More sharing options...
hecker Posted April 10, 2008 Share Posted April 10, 2008 Haha thanks man! I think I've been up too long, I was googling "convert int to string +xcode" "typechange..." "...NSSInt to NSString...". Casting totally slipped my mind. I'll check it right away! Thanks again Good luck! Link to comment Share on other sites More sharing options...
Recommended Posts