Well, this is a little obscure, but it gives me a headache.
If you have an array of strings
{@"1", @"2", @"4"}
And you have an array of recipe objects
{ {recipe_name:@"Lasagna", recipe_id:@"1"} {recipe_name:@"Burger", recipe_id:@"2"} {recipe_name:@"Pasta", recipe_id:@"3"} {recipe_name:@"Roast Chicken", recipe_id:@"4"} {recipe_name:@"Sauerkraut", recipe_id:@"5"} }
How I, using the first array, create such an array:
{@"Lasagna", @"Burger", @"Roast Chicken"}
In his words, he takes the numbers in the first array and creates an array recipe_names, where recipe_id matches the numbers ...
ios objective-c iphone nsarray
cannyboy
source share