i try to insert data in my NSMutableArray :
this is a part of my code:
newArray=[[NSMutableArray alloc]init];
fileArray = [[NSMutableArray alloc] initWithContentsOfFile: file];
[newArray insertObject:dict atIndex:[fileArray count] ];
it’s crash with this error:
[__NSArrayM insertObject:atIndex:]: index 11 beyond bounds for empty array'
thanks for reading
This should work: