title: What does indexPath.row return?
body: <p>i am reading the Big Nerd Ranch guide on Objective c programming and i have the code: </p>
  
  <pre><code>- (NSInteger) tableView:(UITableView *)tableView 
    numberOfRowsInSection:(NSInteger)section {
  
      return [self.tasks count]; 
  }
  
  - (UITableViewCell *) tableView:(UITableView *)tableView 
    cellForRowAtIndexPath:(NSIndexPath *)indexPath{
  
      // Get a reusable cell
      UITableViewCell *c = [self.taskTable dequeueReusableCellWithIdentifier:@"Cell"];
  
      // This below is what i don't understand
      NSString *item = [self.tasks objectAtIndex:indexPath.row];
      c.textLabel.text = item;
  
      return c;
  }
  </code></pre>
  
  <p>I don't understand what indexPath.row returns or what index it is representing in the array, i have just reach the part of the book where i actually get to make small applications, so i am used to just passing an integer for an index.</p>
  
  <blockquote>
    <p>NSString *item = [self.tasks objectAtIndex:indexPath.row];</p>
  </blockquote>
  
  <p>I don't know if all this code is needed but i just wanted to make sure you had all the code needed to answer the question.</p>
  
  <p>.h file -
  <a href="http://pastebin.com/TRnPqn4d" rel="nofollow">http://pastebin.com/TRnPqn4d</a></p>
  
  <p>.m file - 
  <a href="http://pastebin.com/YXZffwye" rel="nofollow">http://pastebin.com/YXZffwye</a></p>