title: How to disable reloading tableview when scrolling in iOS
body: <p>I want to disable reloading table view when scrolling. Now, my app when user scroll the uitableview, <code>cellForRowAtIndexPath</code> has been recalled. How can I disable it when srcolling? Please give me some advice. Thanks in advance.</p>
  
  <pre><code>    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      NSString *CellIdentifier = [NSString stringWithFormat:@"%d,%d",indexPath.section,indexPath.row];
  
      UITableViewCell *cell = [_tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      UILabel *FileNameLabel;
      UILabel *UploadTimeLabel;
  
      if (cell == nil)
      {
          cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
          CFileNameLabel = [[UILabel alloc] initWithFrame:CGRectMake(40, 0, 130, 30)];
              UploadTimeLabel = [[UILabel alloc] initWithFrame:CGRectMake(40, 20, 130, 25)];
  
  
          FileNameLabel.tag = 1000;
          FileNameLabel.backgroundColor = [UIColor clearColor];
          FileNameLabel.font = [UIFont fontWithName:@"Helvetica" size:14];
          FileNameLabel.font = [UIFont boldSystemFontOfSize:14];
          FileNameLabel.textColor = [UIColor blackColor];
          //  FileNameLabel.text =[temp objectAtIndex:indexPath.row];
          [cell.contentView addSubview: FileNameLabel];
          [FileNameLabel release];
  
  
          UploadTimeLabel.tag = 2000;
          UploadTimeLabel.backgroundColor = [UIColor clearColor];
          UploadTimeLabel.font = [UIFont fontWithName:@"Helvetica" size:12];
          UploadTimeLabel.textColor = [UIColor grayColor];
          // UploadTimeLabel.text = [UploadTimeArray objectAtIndex:indexPath.row];
          [cell.contentView addSubview: UploadTimeLabel];
          [UploadTimeLabel release];
  
  
      }
  
      if( [OriginalArray count] &gt; 0)
      {
          UILabel *fileNameLbl = (UILabel*)[cell.contentView viewWithTag:1000];
          //fileNameLbl.text =[temp objectAtIndex:indexPath.row];
          fileNameLbl.text =[[OriginalArray valueForKey:@"FILENAME"] objectAtIndex:indexPath.row];
  
          UILabel *uploadlbl = (UILabel*)[cell.contentView viewWithTag:2000];
          uploadlbl.text =[[OriginalArray valueForKey:@"UPLOADTIME"] objectAtIndex:indexPath.row];
  
      }
      _tableView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
  
      return cell;
  }
  </code></pre>