how is it possible to save an array in multiple locations ie. different view controllers in order to save the data in the arrays and allow it to be used afterwards by a table? edit
objective c i have an ibaction with code
[[NSMutableArray alloc] init];
[favoritesArray addObject: @"one"];
//and in the fav table view this code//
favoritesArray = [[NSMutableArray alloc]init];
didContain = [[NSMutableArray alloc]init];
if ([favoritesArray contains:@"one"]);
{ [didContain addObject:@"trial"]; }
however its crashing at the if part...