Re: int -> NSString
Re: int -> NSString
- Subject: Re: int -> NSString
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 25 Jun 2001 23:31:36 -0700
On Monday, June 25, 2001, at 08:18 PM, Michael Horn wrote:
Is there an easy way to put the value of an int into a NSString?
Thanks.
int someInteger;
NSString someString = [[NSNumber numberWithInt:someInteger] stringValue];
another way that's somewhat less efficient is to use [NSString
stringWithFormat:@"%d",someInteger]
-jcr
"The right to be heard does not include the right to be taken
seriously." - Hubert Humphrey