This is simple don't worry about the entire table. Just check for one row. Rest will be done easily. I am assuming you have subclasses UITableView and UITableviewCell (However, this is not required but good practice to make it resuable).
First, have delegates for your UITableView :
-(void)didSelectQuantity:(NSUInteger)quantity forIndexPath:(NSIndexpath)indexPath.
Second, Encapsulate item information.
// Assume class NSProduct with property itemName,quantity,etc..
In your controller
@property(nonatomic,retain)NSArray *productArray /*Array of NSProduct*/;
Third, In your UITableviewCell implement this logic but for
scrollview (I would suggest to use a pickerview here or a UITableView to get selected value easily. Else you need your own logic here to figure out the selected value when scrolling ends)
- (void)valueSelected:(id)sender
{
CGPoint buttonPosition = [sender convertPoint:CGPointZero toView:self.tableView];
NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:buttonPosition];
if (indexPath != nil)
{
// call delegate.
}
}
Apple has an excellent example illustrating how to solve such problems using pickerview inside a tableview. check here