CEWendel / SWTableViewCell

An easy-to-use UITableViewCell subclass that implements a swippable content view which exposes utility buttons (similar to iOS 7 Mail Application)
MIT License
7.13k stars 1.27k forks source link

Utility Buttons are not responding to setTag Property just like in Normal TableView #412

Open infinZero opened 7 years ago

infinZero commented 7 years ago

I am using standard TableViewCell(not custom) for override its method with SWTableViewCell

Swipe Functionality working pretty well. and it is also showing right & as well as Left Utility buttons

I am also able to achieve index path of selected row for segue sender and it is working well

However I've issue with utility buttons setTag Property

How can I access UitlityButtons row's IndexPath whereas I've already tried following.

NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow]; 
NSLog(@"selected favourite button tag %ld",(long)indexPath);

In simulator it gives me same result each time for each of the row.

selected favourite button tag 0

Any solution to get button's "setTag" property to access index path of the row for those utility buttons when pressed just like in normal tableview