读取plist文件中的数据

来源:互联网 发布:淘宝家具店排名 编辑:程序博客网 时间:2024/04/28 00:48
//1.获取文件的路径(Bundle容器里)    NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"test.plist" ofType:nil];    //2.根据Root的类型Type决定使用数组或者字典    NSArray *array = [NSArray arrayWithContentsOfFile:plistPath];    NSLog(@"%@",array);
0 0
原创粉丝点击