NSMutableArray *array = [[NSArray alloc] initWithObjects:@"Apranax Forte",
@"Actified",
@"Zostex 125 MG",
@"Zoprotec 30 MG",
@"Arveles 25 MG"];
[array insertObject:@"Ahmet" atIndex:[array count] + 1]; // Neither work
[array addObject:@"Ahmet"]
I want to append the Ahmet string to the NSMutableArray array object … Can anyone help me ?
You’re not instaniating a mutable array:
Also don’t forget to terminate the collection of objects with nil.