Skip to content

TableViewAdapter self longPressRowByReuseId string function

xu_whale edited this page Dec 4, 2019 · 4 revisions

title: TableViewAdapter:longPressRowByReuseId(string a, function b) comments: false

简介

设置某个reuseID对应cell的长按回调

设置某个reuseID对应cell的长按回调,触发时长0.5s

  • @param a string reuseId:复用ID
  • @param b function 回调格式:
function(table cell,number section,number row) 
	 ---cell:cell视图表, 类型为Lua中的table,表中仅存在一个元素contentView 
	 ---section:组数 
	 ---row:行数 
end ```
Clone this wiki locally