title: why do programmers use configureCell:atIndexPath: method to config the tableView Cell
body: <p>Well till a couple of days back I use to code everything for <code>UITableViewCell</code> in</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  </code></pre>
  
  <p>method. But recently I found out that the iPhone developers (or mac) use <code>configureCell:atIndexPath:</code> and even most of the apples provided source code have this as one of the class function. <strong>So my question is basically why do we like to create one more function to provide the cell contents then just write the whole code in <code>cellForRowAtIndexPath:</code> method instead.</strong></p>
  
  <p>PS. for people who are not familiar with this then you should see apples source code. and <code>configureCell:atIndexPath:</code> is not another method in UITableViewDatasource, its just a class function that we have in every class that has table view . And we use it like this.</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"Cell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      if (cell == nil)
      {
          cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault 
                                         reuseIdentifier:CellIdentifier] autorelease];
      }
      [self configureCell:cell atIndexPath:indexPath];
      return cell;
  }
  
  - (void)configureCell:(UITableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath
  {
       cell.titleLabel.text = [NSString stringWithFormat:@"%d",indexPath.row];
  }
  </code></pre>
  
  <p>And more important, after just using this style for trial purpose I got in love this function and now I use it all the time.(When I am using a UITableView)</p>
  
  <p><strong>Edit: Ok I think people are getting a wrong idea about my question so let me make it more clear.</strong></p>
  
  <p>I meant why to create another function when you can place all your code in this function</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  </code></pre>
  
  <p>I am not concern about the method name.</p>