Here is my scenario: I have an array of dictionary items with 2 values.
array = (
{
id = 1;
title = "Salon One";
},
{
id = 2;
title = "Salon Two";
}
)
I'm not even sure if this is possible, but can I pass this array into a function and return an objects index based on a dictionary value?
- (int)getObjectIndex:(NSMutableArray *)array byName:(NSString *)theName{
int index;
/* Pseudo Code*/
/*index = the index value in 'array' of objectForKey:@"title" = theName*/
return index;
}