![[UIKit学习]05.关于plist [UIKit学习]05.关于plist](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
plist是一种iOS本地化轻量级存储方式
创建plist
选择New File-> Resource->plist
加载plist
//获得Plist文件的全路径
NSBundle *bundle = [NSBundle mainBundle];
NSString *path = [bundle pathForResource:@"shops" ofType:@"plist"];
//加载plist文件
_shops = [NSArray arrayWithContentsOfFile:path];