- Joined
- Jun 3, 2011
- Messages
- 54
- Reaction score
- 0
- Points
- 6
Hi all!!
I am looking for some data structure which will store data in terms of key and value and where one key corresponds to one or more than one value.
So , something like:
KEY VALUE
key1 value1
key1 value2
key1 value3
key2 value4
key2 value5
...... ..........
and on query all VALUE for a particular KEY is obtained in array.
I tried implementing NSDictionary but I am able to save on one to one basis only Multiple values for one ley is not possible.
Kindly help
I am looking for some data structure which will store data in terms of key and value and where one key corresponds to one or more than one value.
So , something like:
KEY VALUE
key1 value1
key1 value2
key1 value3
key2 value4
key2 value5
...... ..........
and on query all VALUE for a particular KEY is obtained in array.
I tried implementing NSDictionary but I am able to save on one to one basis only Multiple values for one ley is not possible.
Kindly help