【发布时间】:2011-10-22 01:33:04
【问题描述】:
我正在尝试从 .Plist 中的数组加载我的数组,但它不起作用。
plist 如下所示:
这是我正在使用的代码:
NSString *path = [[NSBundle mainBundle]pathForResource:@"DiseasePropertyList" ofType:@"plist"];
NSMutableArray *rootLevel = [[NSMutableArray alloc]initWithContentsOfFile:path];
self.myArray = rootLevel;
[rootLevel release];
【问题讨论】:
-
你看起来很危险!
标签: iphone objective-c xcode nsarray plist