Hi, I'm trying to add a SearchBar to an Array of Dictionaries. I'm following a tutorial from the book "Beginning iPhone SDK" , in which case uses a .plist of a Dictionary of Arrays. I tried to use the same logic from that example. You can see the .plist photos of both cases after the code. Any kind of advice will be much appreciated, let me know if you need more code about the variables. Thank you
Here is the way the book copies all the movies in the dictionary into the list of Movies array:
I'm trying to copy all my recipes of the array to a List of Recipes array: (here is what I got so far, I'm not sure i'm copying the right way)
Here is the way the book copies all the movies in the dictionary into the list of Movies array:
Code:
listOfMovies = [[NSMutableArray alloc] init];
for (NSString *year in array) //---get all the years---
{
//---get all the movies for a particular year---
NSArray *movies = [movieTitles objectForKey:year];
for (NSString *title in movies)
{
[listOfMovies addObject:title];
}
}
I'm trying to copy all my recipes of the array to a List of Recipes array: (here is what I got so far, I'm not sure i'm copying the right way)
Code:
listOfRecipes = [[NSMutableArray alloc] init];
for (NSString *????) //Here is where I get lost, RecipesData represents my Data Source
{
{