아래 코드를 참조하십시오. self.objects가 존재한다는 것을 증명하기 바로 직전에 [self.objects count]에 액세스하면이 오류가 발생하는 이유는 무엇입니까? .H 파일에ios 5 - EXC_BAD_ACCESS 오류
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
// Return the number of rows in the section.
NSLog(@"HERE: %@", self.objects); //this logs the array - no error
NSLog(@"num rows: %@", [self.objects count]); //this line throws the error
return [self.objects count];
}
나는이 있습니다
@synthesize objects = _objects;