美文网首页
读取工程内的plist文件

读取工程内的plist文件

作者: 张家杰仔 | 来源:发表于2017-04-05 10:20 被阅读39次
 NSString *path = [[NSBundle mainBundle] pathForResource:@"AboutUs" ofType:@"plist"];

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

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

相关文章

网友评论

      本文标题:读取工程内的plist文件

      本文链接:https://www.haomeiwen.com/subject/ouetattx.html