what is the solution to display an array of object with "NSLog".
I can display it with my TableView with :
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView
dequeueReusableCellWithIdentifier:@"MyBasicCell2"];
DataOrder *bug = [[[ArrayBuying instance] tableau] objectAtIndex:indexPath.row];
static NSString *CellIdentifier = @"MyBasicCell2";
CustomCellFinalView *Cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (!Cell) {
Cell = [[CustomCellFinalView alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
Cell.NomProduit.text = bug.product;
Cell.Quantite.text = [NSString stringWithFormat:@"%.2f €", bug.price];
Cell.Prix.text = [NSString stringWithFormat:@"X %d ", bug.quantite];
return Cell;
return cell;
}
When I try in my ViewDidLoad:
method this
NSLog(@"%@",[[ArrayBuying instance] tableau]);
I obtain in my target output:
(
"<DataOrder: 0x15d5d980>",
"<DataOrder: 0x15de1aa0>"
)
Thank you very much for your futur help