0
我已经手动编写了一个带有字典的.plist文件。 我的问题是返回的关键“route_id”的值是错误的。 我得到“1”代替“01”。NSDictionary字符串铸造
这里我的字典:
<dict> <key>route_desc</key> <integer>1</integer> <key>route_id</key> <string>01</string> </dict>
这里我的代码:
NSLog(@"%@", [selectedRoute valueForKey:@"route_id"]);
返回1,而不是01;
如果有人能帮助我获得正确的价值!