Dictionaries are not ordered, so there is NSDictionaryno method objectAtIndex:. If you want to save actor / movie pairs in an ordered list, you need to save them in NSArray, for example, using the following structure:
# pseudo-code: [] = array, {} = dictionary
[
{ actor: "Brad Pitt", movies: ["Fight Club", "Seven", "Babel"] },
{ actor: "Meryl Streep", movies: ["Adaptation", "Doubt"] },
# etc...
]
source
share