I have done my homework, I thought I had everything under control.
When I run my project all goes fine, but the UITextView
in the custom UITableViewCell
s are empty.
Here is the code that matters:
[self.tableView registerClass:[NewsCell class]forCellReuseIdentifier:@"NewsCell"];
And then:
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];
But the newTeaser UITextView
shows up empty. Why is this and what error have I made?
I should add that this my first time making custom cells in iOS 7...