读取工程内的plist文件

2017-04-05  本文已影响39人  张家杰仔
 NSString *path = [[NSBundle mainBundle] pathForResource:@"AboutUs" ofType:@"plist"];

//字典类型
    _dataDict = [NSDictionary dictionaryWithContentsOfFile:path];

//数组
[NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"welfare" ofType:@"plist"]]
上一篇 下一篇

猜你喜欢

热点阅读