I am trying to read a plist and write to a file in my iPhone application
here i am not getting items in the order they appear in the plist file
why is it so ?
Code:
NSString *finalPath = [path stringByAppendingPathComponent:@"myplist.plist"];
dict = [NSDictionary dictionaryWithContentsOfFile:finalPath];
for (id key in dict) {
NSString *str = [NSString stringWithFormat:@"%@", key];
NSLog(@"bundle: key=%@, value=%@", key, [dict objectForKey:key]);
}
here i am not getting items in the order they appear in the plist file
why is it so ?