|
@@ -214,9 +214,6 @@
|
|
|
|
|
|
|
|
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
|
|
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
|
|
|
{
|
|
{
|
|
|
- // if(tableView==self.itemListTable)
|
|
|
|
|
- // {
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NSString *CellIdentifier = @"BundleModelCell";
|
|
NSString *CellIdentifier = @"BundleModelCell";
|
|
@@ -225,7 +222,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
cell.labelModel.text = [item_json valueForKey:@"model"];
|
|
cell.labelModel.text = [item_json valueForKey:@"model"];
|
|
|
- cell.labelPrice.text=[NSString stringWithFormat:@"$ %.2f",[[item_json valueForKey:@"unit_price"] floatValue]];
|
|
|
|
|
|
|
+ if([ [NSString stringWithFormat:@"%@", [item_json valueForKey:@"unit_price"] ] isEqualToString:@"No Price"])
|
|
|
|
|
+ cell.labelPrice.text=@"No Price";
|
|
|
|
|
+ else
|
|
|
|
|
+ cell.labelPrice.text=[NSString stringWithFormat:@"$ %.2f",[[item_json valueForKey:@"unit_price"] floatValue]];
|
|
|
cell.labelQTY.text=[NSString stringWithFormat:@"%d",[[item_json valueForKey:@"modulus"] intValue]];
|
|
cell.labelQTY.text=[NSString stringWithFormat:@"%d",[[item_json valueForKey:@"modulus"] intValue]];
|
|
|
|
|
|
|
|
cell.labelDescription.text = [item_json valueForKey:@"description"];
|
|
cell.labelDescription.text = [item_json valueForKey:@"description"];
|