나는 숙제를 마쳤으며 모든 것을 제어 할 수 있다고 생각했습니다. 프로젝트를 실행할 때 모두 괜찮습니다. UITableViewCell
의 UITextView
은 비어 있습니다. 다음사용자 지정 UITableViewCell에 아무 것도 표시되지 않습니다.
[self.tableView registerClass:[NewsCell class]forCellReuseIdentifier:@"NewsCell"];
과 :
NewsCell *cell = [tableView dequeueReusableCellWithIdentifier:@"NewsCell" forIndexPath:indexPath];
NSDictionary *newsObject = [_newsArray objectAtIndex:indexPath.row];
NSString *title = [newsObject objectForKey:@"newsTitle"];
NSLog(@"title: %@", title); // This puts out the correct stuff
[cell.newsTeaser setText:title];
그러나 newTeaser UITextView
이 비어 나타 여기
는 아무것도 표시되지 않는 경우, * *는 무엇을 보여주는가? 또한, 셀의'newsTeaser' 콘센트가 라벨과 연결되어 있는지 확인하십시오. – Caleb
아무것도 표시되지 않습니까? 그럼 뭔가 보여 줄까요? #doublenegative – CW0007007
cell.newsTeaser가 0이 아닌 것은 확실합니까? – CW0007007