#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
NSNumber *num=[NSNumber numberWithInt:123456789];
NSString *string=[NSString stringWithFormat:@"%@",num];
NSLog(@"%@",string);
NSMutableArray *arr=[NSMutableArray array];
for (NSInteger i=string.length-1; i>=0; i--) {
NSString *str3= [string substringWithRange:NSMakeRange(i, 1)];
[arr addObject:str3];
}
for(id ser in arr){
NSLog(@"%@",ser);
}
}
return 0;
}