How do I convert NSInteger to NSString datatype?
NSIntegers are not objects, you cast them to long
, in order to match the current 64-bit architectures' definition:
NSString *inStr = [NSString stringWithFormat: @"%ld", (long)month];
Obj-C way =):
NSString *inStr = [@(month) stringValue];