sakkaras / SKSTableView

An expandable table view.
MIT License
446 stars 115 forks source link

Error When Clicked Expandable Row While Another Row Expanded (BUG) #48

Open ismaiI1 opened 8 years ago

ismaiI1 commented 8 years ago

I set _shouldExpandOnlyOneCell=YES

when I expand i row, if clicked another expandable row tableview detect it as a subrow.

I mean correspondingIndexPath.subRow not 0 for expandable row.

Edit : Abi Türkmüşsün ya :D ben düzelttim bu sıkıntıyı, pull requestle ekledim. #50

  NSIndexPath *correspondingIndexPath = [self correspondingIndexPathForRowAtIndexPath:indexPath];

 if (correspondingIndexPath.subRow == 0)
 {          
       [_SKSTableViewDelegate tableView:tableView didSelectRowAtIndexPath:correspondingIndexPath];
 } else {
       [_SKSTableViewDelegate tableView:self didSelectSubRowAtIndexPath:correspondingIndexPath];
 }
BhaveshDhaduk commented 8 years ago

Hi,

I am getting same issue, any clue...

ismaiI1 commented 8 years ago

@googler2013 i found the solution. please follow #50