[Solved] how can I Convert NSMUtableArray to NSString [closed]


As per Hot Licks comment you can use below code.

bookArray = [[NSMutableArray alloc] init];
[bookArray addObject:@"Book A"];
[bookArray addObject:@"Book B"];

Then use Below code.

NSString *yourString=[bookArray description];

if you want to use NSMutableString and Some different separator then use Below Code.

NSMutableString* content = [NSMutableString string];

for (int aa=0; aa < [bookArray count]; aa++){
    [content appendString:[NSString stringWithFormat:@"%@<separator>",[bookArray objectAtIndex:aa]]];
}

solved how can I Convert NSMUtableArray to NSString [closed]