I can not addObject to NSMutableArray initializedWith 5 string objects
Posted
by ahmet732
on Stack Overflow
See other posts from Stack Overflow
or by ahmet732
Published on 2010-04-15T14:41:23Z
Indexed on
2010/04/15
14:43 UTC
Read the original article
Hit count: 359
objective-c
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 ?
© Stack Overflow or respective owner