2
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{

    static NSString *customCell_Identifier = @"CustomCell";
    ThreePartitionCells *cell = (ThreePartitionCells *)[tableView dequeueReusableCellWithIdentifier:customCell_Identifier];    

    if (cell == nil) 
   {
      cell = (ThreePartitionCells *)[[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:customCell_Identifier] autorelease];
      NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"ThreePartitionCells" owner:self options:nil];
      cell =  [nib objectAtIndex:0];     
   }    

  [cell setSelectionStyle:UITableViewCellSelectionStyleNone];   
   NSLog(@"%@", [arrActivityList objectAtIndex:[indexPath row]]);

   NSString *strTemp = [NSString stringWithFormat:@"%@-%@", [[[[[arrActivityList objectAtIndex:[indexPath row]] objectForKey:@"ITEMS"] objectForKey:@"Area"] objectForKey:@"AREANAME"] objectForKey:@"text"], [[[[[[[arrActivityList objectAtIndex:[indexPath row]] objectForKey:@"ITEMS"] objectForKey:@"Area"] objectForKey:@"ITEMS"] objectForKey:@"Bin"] objectForKey:@"BIN_BARCODE"] objectForKey:@"text"]  ];

  cell.lblProductName.text = strTemp;
  cell.lblExpectedCount.text = [[[arrActivityList objectAtIndex:[indexPath row]]objectForKey:@"ProductName"]objectForKey:@"text" ];

  cell.lblCounted.text = [[[arrActivityList objectAtIndex:[indexPath row]] objectForKey:@"Status"] objectForKey:@"text"];

  [cell.lblProductName setFont:[UIFont fontWithName:@"Helvetica" size:13.0]];
  [cell.lblCounted setFont:[UIFont fontWithName:@"Helvetica" size:13.0]];

  return cell;
 }

このようなプロジェクトの分析中に、「「セル」に保存された値は決して読み取られない」という警告が表示されます。コードはセルを使用していますが、その if ブロックの外にあります。この警告を黙らせたい!

誰でもこれを手伝ってもらえますか?

前もって感謝します :)

4

1 に答える 1