This is how you can get a first key for object (in case it is an NSString
):
NSArray *keys = [yourDic allKeysForObject:yourObject];
NSString *yourKey;
if ([keys count] > 0) {
yourKey = keys[0];
}
This handles if the object is not found in in the dictionary.