False order when reading Dictionary from PList
I have a plist from which i am trying to access its animations in sequence (as defined in the PList) but when I store it in NSDictionary and then try to play animation one by one it is not playing them in sequence. e.g, int index = 0; [self playAnimation:[animTypes objectAtIndex:index++]]; [self playAnimation:[animTypes objectAtIndex:index++]]; This is the code of my Plist: <plist version="1.0"> <dict> <key>Boy</key> <dict> <key>Enter</key> <dict> <key>disabled</key> <false/> <key>halfCycle</key> <true/> <key>fps</key> <integer>1</integer> <key>defaultFrame</key> <integer>0</integer> <key