iOS-如何读取Plist文件

 解决办法:    

    // 1) 找到Plist文件的路径 "path"

    NSString *path = [[NSBundle mainBundle]pathForResource:@"settings" ofType:@"plist"];

    // 2) 利用NSArray方法里面的“用文件路径创建” 创建并返回一个新的数组

    self.dataList(数组————Plist文件里面是一个数组) = [NSArray arrayWithContentsOfFile:path];

原文地址:https://www.cnblogs.com/shenyangxiaohuo/p/5230209.html