appdata.items는 NSMutableArray 개체입니다.약 removeObjectAtIndex
소스 코드
이 오류의 원인 로그2009-11-08 21:53:01.683 xxx[14283:207] (
200,
"",
2009-11-08 21:52:53 +0900
)
2009-11-08 21:53:01.684 xxx[14283:207] 0
2009-11-08 21:53:01.685 xxx[14283:207] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)'
-(void)deleteAppDataItemId:(NSInteger)identifier{
NSLog(@"%@", [appdata.items objectAtIndex:identifier]);
NSLog(@"%i", identifier);
[appdata.items removeObjectAtIndex:identifier];
}
?
[appdata.items 수]도 기록 할 수 있습니까? appdata.items가 비어있는 것 같습니다. – diederikh
이것은 [appdata.items count] 로그입니다. 2009-11-08 22 : 23 : 51.861 xxx [14387 : 207] 1 – marcy
다른 스레드에서 appdata.items를 수정하는 응용 프로그램의 다른 부분이 있습니까? – diederikh