title: TableView lags when Scrolling
body: <p>I am trying to implement a table like facebook or twitter timeline. but when I scroll the <code>UITableView</code>, it's very slow and lagging. How can I fix this problem ?</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      ViewControllerCell *cell = [tableView dequeueReusableCellWithIdentifier:@"htrcell"];
      if (cell==nil)
      {
          NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"Cell" owner:self options:nil];
          cell = [nib objectAtIndex:0];
      }
  
      NSDictionary *dataArray = [self.threndsArray objectAtIndex:indexPath.row];
  
      NSURL *url = [NSURL URLWithString:[dataArray objectForKey:@"pic_timeline"]];
  
      NSData *imgData = [NSData dataWithContentsOfURL:url];
  
      cell.upload_image.image =[UIImage imageWithData:imgData];
  
      NSURL *urlimage = [NSURL URLWithString:[dataArray objectForKey:@"pic_user"]];
      NSData *Dataimage = [NSData dataWithContentsOfURL:urlimage];
      cell.uploder_image.image =[UIImage imageWithData:Dataimage];
      cell.uploder_image.clipsToBounds = YES;
      cell.uploder_image.layer.cornerRadius = cell.uploder_image.frame.size.height /2;
      cell.uploder_image.layer.borderWidth = 2.0;
      cell.uploder_image.layer.borderColor = [UIColor whiteColor].CGColor;
  
      cell.uploder_name.text=[dataArray valueForKeyPath:@"nama_user"];
  
      cell.like_counter.text=[NSString stringWithFormat:@"%@",[dataArray valueForKeyPath:@"likes"]];
  
      cell.commenter_name.text=[dataArray valueForKeyPath:@"status_timeline"];
  
      cell.comments.text=[dataArray valueForKeyPath:@"tgl_timeline"];
  
  
      [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
  
      return  cell;
  }
  </code></pre>