Converting Int To String
Does anyone know how to quickly convert an integer into a string (preferably an NSString)? Thanks for all the help you guys have given to me over the last 10 months.
NSString *string = [NSString stringWithFormat:@"%d", yourInteger];
Dang. I was close to that but I got errors when trying. Not sure what I did wrong but I thought that was how it was done. Thanks.
Don't feel bad. I always have to refer to documentation for that, for some reason.
maaaaark Wrote:Don't feel bad. I always have to refer to documentation for that, for some reason.
heh, Thats probably my most used function. I bet I can type "[NSString stringWithFormat:" quicker then any other 25 char string.
That probably means im grossly overusing NSString's
There was a long silence...
'I claim them all,' said the Savage at last.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| formatting value in a string | sefiroths | 3 | 3,522 |
Dec 12, 2011 02:41 AM Last Post: sefiroths |
|
| Getting a value from a String | Megamac04 | 5 | 3,316 |
Jan 31, 2010 04:23 PM Last Post: smasher |
|
| Parsing from a string to something faster? | Madrayken | 3 | 2,695 |
Aug 10, 2009 03:32 PM Last Post: smasher |
|
| Is -fconstant-string-class broken under the XCode/Next runtime | Justin Brimm | 17 | 6,692 |
Jun 12, 2008 01:04 PM Last Post: Justin Brimm |
|
| string to interger comparison? | dareuhl | 8 | 3,862 |
May 22, 2008 05:44 PM Last Post: OneSadCookie |
|

