here is my plist and code
> <plist version="1.0">
> <dict>
> <key>Title</key>
> <string>News</string>
> <key>icon</key>
> <integer>0</integer>
> </dict>
> </plist>
int i = [dictionary objectForKey:@"icon"];
NSLog(@"%d",i);
log result is 81841904
why it not 0 ?
objectForKeyreturns a reference, not an integer. I believe that it’s returning aNSNumberin this case. You can get an integer value out of that.