JustinWong

做纯粹的快乐的游戏

导航

iOS读Resource中的plist

Posted on 2011-06-09 10:29  JustinWong  阅读(469)  评论(0)    收藏  举报

备忘:

NSString *cfgPath = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%@Cfg.plist", themeName] ofType:nil inDirectory:nil];
NSDictionary
*cfgDictionary = [NSDictionary dictionaryWithContentsOfFile:cfgPath];