I created a NSMutableArray which contains a lot of NSString and float
DataOrder *addClient = [[DataOrder alloc ] initWithName:[[DataOrder instance]product] pric
Something like this will work:
float total = 0; for (DataOrder *client in [[ArrayBuying instance] tableau]) { total += client.price; } NSLog(@"total = %f", total);
I'm just guessing that your DataOrder class has a price property. Use what you really have.
DataOrder
price