I want to make one empty array using for loop, and for this I wrote below code, but it displays array elements like 1,2,3,4,5 in NSLog statements, but I want to display empty array like ("","","","","")
Here is my code:
arrTemp=[[NSMutableArray alloc]init];
for (int i = 0; i < 5; i++) {
[arrTemp addObject:[NSString stringWithFormat:@"%d",i]];
}
NSLog(@"array detais is %@",arrTemp);