Re: int -> NSString
Re: int -> NSString
- Subject: Re: int -> NSString
- From: Enrique Zamudio <email@hidden>
- Date: Tue, 26 Jun 2001 11:09:33 -0500
There are two ways I can think of right now:
int x;
NSString *s;
//one
s = [NSString stringWithFormat:@"%d", x];
s = [NSString stringWithFormat:@"d", x];
(etc, using printf-style formatting)
//two
s = [[NSNumber numberWithInt:x] description];
eZL