NSString To NSSArray
How Can we Store An group OF 开发者_C百科NSString Objects to an Single Array..... starting from index = 0;
NSArray *array = [NSArray arrayWithObjects:string1, string2, string3, nil];
or
NSMutableArray *array = [NSMutableArray array];
[array addObject:string1];
[array addObject:string2];
pick one, or improve your question if I've misunderstood you.
An example:
NSArray *myStringArray = [NSArray arrayWithObjects:@"String", @"Another String", @"Last string", nil];
NSArray *myStringArray = [NSArray arrayWithObjects: string1, string2, string3, ..., stringn, nil];
精彩评论