How to get an array type [1,2] instead of (1, 2) in Objective-c?
问题 I'm trying to send an array in post JSONModel call. I need convett my array to NSString and send the array in format: [1, 2, 3] but when I convert this to NSString and print my array, this has the format: (1, 2, 3) NSMutableArray *array= [NSMutableArray arrayWithObjects:@"1", @"2",@"3",@"4", nil]; NSString *arraString = [NSString stringWithFormat:@"%@", arr]; NSLog(@"%@",arraString); How can I create this with [] format? 回答1: NSMutableArray *array= [NSMutableArray arrayWithObjects:@"1", @"2",