[__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];
Hope the following will help you if you are manipulating JSON data from webservice
cell.textLabel.text=[NSString stringWithFormat:@"%@",[[JsonDictionaryObject objectForKey:@"Respected_Key_Name"]objectAtIndex:indexPath.row]];