各セルにカスタムボタンがあるテーブルビューがあります。ボタンが配置されたインデックスパスを教えてくれるこのメソッドがあります。以下の方法は iOS 6 ではうまく機能しますが、indexPathForItem は iOS 6.0 以降でしか使用できないため、iOS 5 で同じ結果を得る方法がわかりません。
- (IBAction) checkUncheck:(id)sender
{
UIButton *sendingButton = (UIButton *) sender;
UITableViewCell *cell = (UITableViewCell *)[[sendingButton superview] superview];
PDFFile *newPDF = [_pdfDocument.pdfFileList objectAtIndex: cell.tag];
[newPDF setCheck: [NSNumber numberWithBool: ![newPDF.check boolValue]]];
NSIndexPath *path = [NSIndexPath indexPathForItem: cell.tag inSection: 0];
[_table reloadRowsAtIndexPaths:[NSArray arrayWithObjects: path, nil] withRowAnimation: UITableViewRowAnimationAutomatic];
}