Wednesday, May 4, 2011

objective C: convert from int to string

 
int numberYouAreTryingToConvert = 5;
NSString* convertedNumber = [NSString stringWithFormat:@"%d"
                                      ,numberYouAreTryingToConvert];
 
Reference:
http://stackoverflow.com/questions/1104815/how-to-...-example-code

No comments: