tags:

views:

1377

answers:

1

Hi, how to convert NSInteger to NSString datatype?

i tried.. month is NSInteger....

  NSString *inStr = [NSString stringWithFormat:@"%d", [month intValue]];

any help please?

+6  A: 

NSIntegers are not objects, you treat them like int type variables:
NSString *inStr = [NSString stringWithFormat:@"%d", month];

luvieere