I can not addObject to NSMutableArray initializedWith 5 string objects
- by ahmet732
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 that nor this one [array addObject:@"Ahmet"] work !!!1
I want to append the Ahmet string to the NSMutableArray array object ... Can anyone help me ?