Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个基于视图的表格视图,带有一个显示弹出框的按钮:
我将如何将选定的设置为按住按下按钮的行。
我正在使用带有阵列控制器的核心数据。我计划让弹出窗口中的 tableview 显示相关对象。
只需为每个单元格按钮添加一个等于行的标签,button.tag = indexPath.row; 然后在您的按钮中selector调用
button.tag = indexPath.row;
selector
[self tableView:self.tableView didSelectRowAtIndexPath:[NSIndexPath indexPathForRow:button.tag inSection:0]];