2012-04-16 51 views

回答

1

中只需添加一个标签等于行的每一个单元格按钮,button.tag = indexPath.row; 然后你的按钮的selector你只需要调用

[self tableView:self.tableView didSelectRowAtIndexPath:[NSIndexPath indexPathForRow:button.tag inSection:0]]; 
+0

我忘了提,一切都通过绑定挂钩。我猜你的意思是在tableView中设置按钮标签:rowForView :.我会尝试子类化tableRowView并在那里设置它。 – 2012-04-16 23:17:25

+0

你必须在tableView:cellForRowAtIndexPath中做到这一点: – 2012-04-17 05:29:05

相关问题