In my code I am using JSONValue to grab an NSDictionary.
The dictionary looks like this:
{
{ID = 0, NAME = "Patrick"},
{ID = 1, NAME = "Ted"},
{ID = 2, NAME = "John"},
{ID = 3, NAME = "Allen"},
{ID = 4, NAME = "David"}
}
I would like to return the name of the corresponding ID in the following delegate function:
- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component
What is the most efficient way to do that?
For example: