我想從我的.Plist數組中加載我的數組,但它不工作。從.Plist加載數組
plist中看起來是這樣的:
這是我使用的代碼:
NSString *path = [[NSBundle mainBundle]pathForResource:@"DiseasePropertyList" ofType:@"plist"];
NSMutableArray *rootLevel = [[NSMutableArray alloc]initWithContentsOfFile:path];
self.myArray = rootLevel;
[rootLevel release];
你看起來很危險的名單! – Moshe