In ios7 , UITableViewWrapperView is the superview of UITableViewCell. Also UITableView is the superview of UITableViewWrapperView. So for ios7 the solution is :

UITableView *tableView = (UITableView *)cell.superview.superview

cell is object of UITableViewCell .

If ios6, the solution is :

UITableView *tableView = (UITableView *)cell.superview