您的位置:首页 > 其它

读取plist文件中的数据

2016-10-11 14:19 411 查看
//1.获取文件的路径(Bundle容器里)
NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"test.plist" ofType:nil];
//2.根据Root的类型Type决定使用数组或者字典
NSArray *array = [NSArray arrayWithContentsOfFile:plistPath];
NSLog(@"%@",array);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐