Fr 07/22/16
1) How to convert NSInteger to String in modern Objective-C.
You can forget about NSString *inStr = [NSString stringWithFormat: @"%ld", (long)month];Use this:
NSInteger value = x;
NSString *string = [@(value) stringValue];
Here @(value) converts the given NSIntegert to NSNumber object from which you get the desired type.
Комментарии
Отправить комментарий