을 스크롤 할 때 UITableView가 충돌 함 이것은 github에서 가져온 코드이며 내가 주석 처리 한 코드에서 오류가 발생합니다. EXC BAD ACCESS는 무언가를 유지하거나 해제하지만 ARC를 사용하도록 설정했기 때문에 발생합니다. 나는 무엇을 해야할지 모른다.github에
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *cellIdentifier = @"Cell";
CountryCell *cell = (CountryCell *)[tableView dequeueReusableCellWithIdentifier:cellIdentifier];
if(cell == nil) {
cell = [[CountryCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:cellIdentifier];
}
cell.textLabel.text = [[_dataRows objectAtIndex:indexPath.row] valueForKey:kCountryName]; //here crashes
cell.detailTextLabel.text = [[_dataRows objectAtIndex:indexPath.row] valueForKey:kCountryCallingCode]; //here crashes
return cell;
}
는 github에 당신이 가진 다운로드했습니다 파일합니까 ARC 지원이 필요합니까? – GenieWanted
아무 말도하지 않는다.이게 하나이다. https://github.com/pradyumnad/Country-List/blob/master/README.md – Elgert
당신은 이드를 의미합니까? 나던 tableview로드 된 있지만 스크롤 할 때 발생합니다 – Elgert