[__NSCFNumber length]: unrecognized selector sent to instance UITableView
cell.titleLabel.text = txn.funcCdDscp;
cell.totalCountLabel.text = txn.taskCount;
One of these (not sure which, but my guess would be taskCount
) is a NSNumber. Text takes an NSString.
cell.titleLabel.text = txn.funcCdDscp;
cell.totalCountLabel.text = [txn.taskCount stringValue];
OR
Use this as this is best solution
cell.totalCountLabel.text = [NSString stringWithFormat:@"%@",txn.taskCount];