title: Row index from indexPath
body: <p>I often call a web service when a view loads and save an NSMutableArray with the contents of the call. Then in cellForRowAtIndexPath I retrieve the rows from this array. I use what feels like a hack to get the row index from the indexPath, however:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
      &lt;snip cell alloc stuff&gt;
  
      // Configure the cell.
      unsigned int *indexes = (unsigned int*)calloc( [indexPath length], sizeof( unsigned int ) );
      [indexPath getIndexes:indexes];
      Tasks *task = [_tasksArray objectAtIndex:indexes[1]];   
      free( indexes );
  
      cell.textLabel.text = [task getname];
      cell.detailTextLabel.text = [NSString stringWithFormat:@"Started: %@", [task getstarted] ? [[task getstarted] description] : @"Not Yet"];
  
      return cell;
  }
  </code></pre>
  
  <p>Is there a better way to do this?</p>