SKSTableView icon indicating copy to clipboard operation
SKSTableView copied to clipboard

Got wrong Indexpath when clicked Button inside SubRowAtIndexPath

Open kirti301290 opened this issue 10 years ago • 1 comments

Hi

i am using this control is works fins but facing one issue i have added one button in cellForSubRowAtIndexPath when i clicked button the i got wrong row and subrow below is mu code

  • (UITableViewCell *)tableView:(UITableView *)tableView cellForSubRowAtIndexPath:(NSIndexPath *)indexPath

{

UIButton btn=(UIButton)[cell.contentView viewWithTag:15];

[btn addTarget:self action:@selector(DeleteClicked:) forControlEvents:UIControlEventTouchUpInside];

}

-(void)DeleteClicked:(UIButton*)sender

{

CGPoint point=[sender convertPoint:CGPointZero toView:tbl_Preview];

indexpath=[tbl_Preview indexPathForRowAtPoint:point];

// i got wrong indexpath

} Please help me thanks

kirti301290 avatar Feb 11 '15 11:02 kirti301290

check this http://stackoverflow.com/questions/37677705/skstableview-got-wrong-indexpath-when-clicked-button-inside-subrowatindexpath/37677812#37677812

kksuthar321 avatar Jun 07 '16 11:06 kksuthar321