Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

When Clicked Expandable Row While Another Row Expanded #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions SKSTableView/SKSTableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -320,21 +320,21 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath

[cell accessoryViewAnimation];
}
}

if ([_SKSTableViewDelegate respondsToSelector:@selector(tableView:didSelectRowAtIndexPath:)])
{
NSIndexPath *correspondingIndexPath = [self correspondingIndexPathForRowAtIndexPath:indexPath];

if (correspondingIndexPath.subRow == 0)
{
[_SKSTableViewDelegate tableView:tableView didSelectRowAtIndexPath:correspondingIndexPath];
}
else
}else{
if ([_SKSTableViewDelegate respondsToSelector:@selector(tableView:didSelectRowAtIndexPath:)])
{
[_SKSTableViewDelegate tableView:self didSelectSubRowAtIndexPath:correspondingIndexPath];
NSIndexPath *correspondingIndexPath = [self correspondingIndexPathForRowAtIndexPath:indexPath];

if (correspondingIndexPath.subRow == 0)
{
[_SKSTableViewDelegate tableView:tableView didSelectRowAtIndexPath:correspondingIndexPath];
}
else
{
[_SKSTableViewDelegate tableView:self didSelectSubRowAtIndexPath:correspondingIndexPath];
}
}
}
}
}
else
{
Expand Down