NSDictionary *item = [NSDictionary dictionaryWithObjectsAndKeys:
eyeNameHolder,@"eye",
lipsNameHolder,@"lips",nil];
NSMutableArray *arrayItems = [NSMutableArray arrayWithObject:item];
[arrayItems insertObject:item atIndex:dynamical variable];
[arrayItems writeToFile:finalPath atomically:YES];
how can i replace the value of atIndex dynamically by sending different values from 0 to 10 through tapping different buttons from 0 to 10?
NSMutableArrayhasreplaceObjectsAtIndex:withObject:, try something like: