Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iPhone UITableView-附件单击时的操作_Iphone_Objective C_Uitableview - Fatal编程技术网

iPhone UITableView-附件单击时的操作

iPhone UITableView-附件单击时的操作,iphone,objective-c,uitableview,Iphone,Objective C,Uitableview,我试图将单击UITableView中的附件按钮链接到特定类中的方法。该附件位于多个单元格上,由代码创建,因此我不能像以前那样在interface builder中只做一个简单的链接 如何将附件箭头(从UITableView中单元格的末尾)链接到方法?查看UITableView委托上的tableView:accessorybuttonattappedforrowwithindexpath:方法这不再有效,Xcode标记一个警告,它现在被弃用 警告:由于tableView:accessoryButt

我试图将单击
UITableView
中的附件按钮链接到特定类中的方法。该附件位于多个单元格上,由代码创建,因此我不能像以前那样在interface builder中只做一个简单的链接


如何将附件箭头(从
UITableView
中单元格的末尾)链接到方法?

查看
UITableView委托
上的
tableView:accessorybuttonattappedforrowwithindexpath:
方法这不再有效,Xcode标记一个警告,它现在被弃用

警告:由于tableView:accessoryButtonTappedForRowWithIndexPath:in的委托实现,使用传统单元格布局。请删除此方法的实现,并将单元格属性accessoryType和/或editingAccessoryType设置为移动到新的单元格布局行为。在将来的版本中将不再调用此方法。
请参见此处:

无法复制此内容。它在[developer class reference]中没有被标记为不推荐使用,我在Monodevelop中得到了新的警告(2.8.6.5,MonoTouch 5.2.5,Xcode 4.2.1)或者…我同意@chiffre。没有将
tableView:accessoryButtonTappedForRowWithIndexPath
列为折旧。它是点击的,而不是类型当在indexPath为行设置附件视图时,不会调用此方法。