I have a problem after the data being fetched from Core Data. I filled a TableView from the fetched data but the TableView shows the following data in it
(entity: Fortune; id: 0x6549c40 ; data: )
Can anybody tell me what I am doing wrong? Below is the code I used to fill TableViewCell
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"] autorelease];
Fortune *info = [fetchedObjects objectAtIndex:indexPath.row];
cell.textLabel.text = info.description;
return cell;
}
Where Fortnue is my Managed Object Class and description is the column of type NSString.
Regards.
[object description];is a default method returning the description of the instance, memory address etc. You should not use the name ‘description’ for any of your properties of anNSManagedObject.