//利用mainBundle可以访问软件资源包中的任何资源
NSBundle *bundle = [NSBundle mainBundle];
//获得imageData.plist的全路径
NSBundle *path = [bundle pathForResource:@"imageData" ofType:@"plist"];
//方法arrayWithContentsOfFile需要全路径
_imageData = [NSArray arrayWithContentsOfFile:path];
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交