을 읽을 수 없습니다 :내가 내 PLIST를 읽는 방법에 문제가있어 PLIST
@synthesize data //NSMutableArray
-(void)readPlist{
plistFilePath = [NSString stringWithString:[[NSBundle mainBundle] pathForResource:@"myPlist" ofType:@"plist"]];
data = [[NSMutableArray alloc] initWithContentsOfFile:plistFilePath];
//here I use data, it doesn't matter for what
[data release
}
내가 엑스 코드 데이터의 빈을 말한다 NSLog(@"%@", data)
data = [[NSMutableArray alloc] initWithContentsOfFile : plistFilePath];
후 수행합니다. 코드에서 오류를 찾을 수 없습니다. 무엇이 잘못 되었나요?
plistFilePath가 0이 아닌 것은 확실합니까? – borrrden
아니요, 실제로는 괜찮습니다. – adr
내용이 유효한지 확인할 수 있습니까? Xcode에서 열리나요? – borrrden