按钮的响应函数:
- (void) btnOnClickTouched:(UIButton *)aButton
{
myTableViewCell* myCell = (myTableViewCell *)[aButton superView]; //表示Button添加在了Cell中。
//如果将Button添加在myCell.contentView 中,
//myCell = (myTableViewCell *)[[aButton superView] superView];
indexPath cellPath = [self.tableView indexPathForCell:myCell];
NSIntage i = cellPath.row; //这个就是cell的indexPath.row;
}