阅读背景:

UITableViewCell里面的按钮 - 我如何找出它里面的单元格?

来源:互联网 

I have a button inside every cell of my UITableView, but when the button is triggered, I want to find out which cell it's inside. I could use a tag, or subclass the button and add a indexPath to it, but then the problem comes when I'm deleting or adding cells and I have to keep up with updating all those buttons. Is there another way people can think of doing this well?I have a button inside every cell of my UITable




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: