I’ve manually written a .plist file with a dictionary.
My problem is that the value for the key “route_id” returned is wrong.
I get a “1” in place of “01”.
Here my dict :
<dict> <key>route_desc</key> <integer>1</integer> <key>route_id</key> <string>01</string> </dict>
Here my code :
NSLog(@"%@", [selectedRoute valueForKey:@"route_id"]);
Return 1 and not 01;
If anyone can help me to get the right value !
I’m not sure what you’re doing, but you’re messing things up somewhere. I saved the plist to my desktop and ran:
And got: