i have created a tableview in which we can add and delete rows. On each row there is a button having tag as that of the indexPath. Now when i insert a new row above any row then that the button in that cell gets the correct tag, but the other cell-buttons retains there old tag.

I tried
1. reloading the tableview - not working
2. reloading the section - not working
3. reloading rows at all the indexPaths - not working

I used foll code to insert the new row but the cellForRowAtInsexPath method gets called only once, i.e only for the newly added row, due to which the tag of the button on old cell is remaining the same

```
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:newRowNo inSection:0];
NSArray *otherArray = [NSArray arrayWithObject:indexPath];
[tableViewObj insertRowsAtIndexPaths:otherArray withRowAnimation:UITableViewRowAnimationNone];

```

and in cellForRowAtIndexPath:(NSIndexPath \*)indexPath i have a button infoButton whose tag is set a per the indexPath
infoButton.tag = indexPath.row;