NSString* questionedListVIPID;
if(self.selectedItem)
{
self.selectedItem.quantity = [NSNumber numberWithInt:[quantityField.text integerValue]];
NSMutableIndexSet *changedItems = [NSMutableIndexSet indexSet];
NSUInteger index = 0;
for (selectedIndivVendorItem *ivi in basketArray) {
index++;
questionedListVIPID = ivi.vendorItemPriceID;
if ([self.selectedItem.vendorItemPriceID isEqualToString:questionedListVIPID])
{
[changedItems addIndex:index];
}
}
((selectedIndivVendorItem*)[basketArray objectAtIndex:index]).quantity = [NSNumber numberWithInt:[quantityField.text integerValue]];
selectedIndivVendorItem* sivi = [basketArray objectAtIndex:index];
[self printBasket:basketArray];
[self alertUserAndPopViewController:sivi];
}
No comments:
Post a Comment