ios - tableView tag wrong after moveRowAtIndexPath method -
i have view 7 tableviews representing 7 days of week. each tableview initialized tag 0 6. made longpressure recognizer in cells access right tableview: - (ibaction)longpress:(uigesturerecognizer *)sender { self.clickedpoint = [sender locationinview:self.view]; // down subview user clicked uiview *clickedsubview = [self.view hittest:self.clickedpoint withevent:nil]; if( [clickedsubview.superview iskindofclass:[customcell class]] ) { // selected tableview uitableview *selectedtableview = (uitableview*)clickedsubview.superview.superview; nslog(@"selected tag: %d", selectedtableview.tag); } } when press cell tags shown correctly. problem when move row inside of tableview. when moverowatindexpath: in tableview , longpress, tag of tableview made moverow gets tag of last longpress of tableview. example: i moverow in table tag 2. longpress table tag 5. go longpress table of tag 2 time log tag = 5 (the 1 before). if longpres...