獲取indexpath:
-(void)chosedIntergetAction:(UIButton *)button event:(UIEvent *)event{
UITouch *touch = [[event allTouches] anyObject];
CGPoint point = [touch locationInView:self.tableView];
NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:point];
self.indexPath = indexPath;
NSLog(@"section----%li,----row---%li",(long)indexPath.section,(long)indexPath.row);}
刷新點擊cell:
NSArray <NSIndexPath *> *indexPathArray = @[self.indexPath];
[self.tableView reloadRowsAtIndexPaths:indexPathArray withRowAnimation:UITableViewRowAnimationAutomatic];