title: UITableView indexPath error
body: <p>I use UiTableView to show some data from my database. The code is,</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];
  
  // Configure the cell...
  NSInteger uniqueId = [self.database.arrayColumnNames indexOfObject:@"id"];
  NSInteger title = [self.database.arrayColumnNames indexOfObject:@"title"];
  NSInteger Name = [self.database.arrayColumnNames indexOfObject:@"Name"];
  NSInteger picture = [self.database.arrayColumnNames indexOfObject:@"pictureName"];//3
  cell.textLabel.text = [NSString stringWithFormat:@"%@: %@",[[self.arrayInfo objectAtIndex:indexPath.row] objectAtIndex:uniqueId], [[self.arrayInfo objectAtIndex:indexPath.row] objectAtIndex:title]];
  cell.imageView.image = [UIImage imageNamed:[[self.arrayInfo objectAtIndex:indexPath.row] objectAtIndex:picture]];
  cell.detailTextLabel.text = [NSString stringWithFormat:@"      %@", [[self.arrayInfo objectAtIndex:indexPath.row] objectAtIndex:bandName]];
  return cell;
  </code></pre>
  
  <p>}</p>
  
  <p>And after I ran the code, I got a error,</p>
  
  <pre><code>-[__NSArrayM objectAtIndex:]: index 3 beyond bounds [0 .. 2]
  </code></pre>
  
  <p>I added some breakpoint in this method, and seems like the length of indexPath is 2, and NSInteger of picture is 3, so the error occurred. It is what I thought about this error, but I don't know how to solve it.</p>