My application always popping 'mutating method sent to immutable object' My dictionary and the array already declare to be a mutable one but seems it doesn't help I have tried the replaceObjectAtIndex function it also didn't work.
NSString* plistpath = [[NSBundle mainBundle] pathForResource:@"data" ofType:@"plist"];
NSMutableDictionary* dictionary = [NSMutableDictionary dictionaryWithContentsOfFile:plistpath];
NSMutableArray* Array1 = [dictionary objectForKey:@"Array1"];
[Array1 removeObjectAtIndex:num];
[Array1 insertObject:@"1" atIndex:num];
return Array1;
thanks
Array1todictionaryand how did you create it before adding it? - sch