Monday, June 21, 2010

string to int,int to string iphone

string to int
intValue will give you an int

If you want an NSInteger

[mynsstring integerValue];

See here

int to string
NSString *myString = [NSString stringWithFormat:@"%d", myInt]

No comments:

Post a Comment