title: Unrecognized selector sent to instance UITableViewCell
body: <p>i have looked up the same questions, but the answers given don't seem to fix my problem.</p>
  
  <p>I'm creating an app where you can add and remove your school marks. In my view controller i have created a <code>UITableView</code>. Within there there's a custom <code>UITableViewCell</code>, called <code>TableViewCell</code>. To delete a cell i need to get it's row. I try that by using the following code in the <code>TableViewCell</code> class:</p>
  
  <pre><code>- (IBAction)DeleteMark:(id)sender {
  
     UITableView *superTableView = [self superview];
     NSIndexPath *path = [superTableView indexPathForCell:self];
     NSInteger *index = [path row];
     NSLog([NSString stringWithFormat:@"%@", index]);
  }
  </code></pre>
  
  <p>When i run the code it shows the following error:</p>
  
  <pre><code>-[UITableViewWrapperView indexPathForCell:]: unrecognized selector sent to instance 0xa825a00
  </code></pre>
  
  <p>As i said before i tried the solutions given on the forums, but none of them worked.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here's my code for <code>cellForRowAtIndexPath</code></p>
  
  <pre><code>-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
  
     TableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath];
  
  
     float weight = [[_editableClass.markWeights objectAtIndex:indexPath.row]floatValue];
     float mark = [[_editableClass.classMarks objectAtIndex:indexPath.row]floatValue];
  
     cell.MarkTextLabel.text = [NSString stringWithFormat:@"%.1f", mark];
     cell.MarkWeight.text = [NSString stringWithFormat:@"%.1f", weight];
     [cell.DeleteButton setTag:indexPath.row];
     return cell;
  }
  </code></pre>