[Solved] how to convert NSMutable array with NSNumber into strings [closed]


First of all array can not store integer. It must be in NSNumber or it is in NSString itself.

In either of the case you can create a long string by appending them,

NSString *string=[yourArray componentsJoinedByString:@","];

Or, if you want each value as string then you need to create that much string and then access them.

 NSArray *numbersToStrings=[NSArray new];
 for(id element in yourArray){
     [numbersToStrings addObject:[NSString stringWithFormat:@"%@",element];
 }

Here numbersToStrings contains all the values as string.

solved how to convert NSMutable array with NSNumber into strings [closed]