Don't know what you trying to do. But I give explanation for this two line.
[sender superview] which means, you may click on button, that's why, you get this sender which placed on cell's contentview. Then again you call superview], So you can get superview of content view which is in cell. see below that view hierarchy.
----cell
-------ContentView
-------------Sender
NSIndexPath * path = [self.tableView indexPathForCell:cell];. This line will give indexPath for corresponding cell which is kept in tableview cell stack.