Convert NSString to int
NSString *aNumberString = @"123"; int i = [aNumberString intValue];
Convert int to NSString
int aNumber = 123; NSString *aString = [NSString stringWithFormat:@"%d", aNumber];
Convert NSString to int
NSString *aNumberString = @"123"; int i = [aNumberString intValue];
Convert int to NSString int aNumber = 123; NSString *aString = [NSString stringWithFormat:@"%d", aNumber];
|