cocos2d iphone - How to read a plist data and get int from it? -


currently using cocos2d. have plist data name myplist.plist. inside plist integers.. how read data , int in it?

nsstring *path = [[nsbundle mainbundle] bundlepath]; nsstring *dictionarypath = [path stringbyappendingpathcomponent:@"myplist.plist"];  nsdictionary *integerdictionary = [[nsdictionary alloc] initwithcontentsoffile:dictionarypath];  int myinteger1 = [[integerdictionary objectforkey:@"integer1"] intvalue]; int myinteger2 = [[integerdictionary objectforkey:@"integer2"] intvalue]; // etc etc 

Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -