有没有人知道如何在Titanium中删除TableView中的行。
答案 0 :(得分:3)
要从TableView中删除,您可以使用Ti.UI.TableView.deleteRow()
http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.TableView.deleteRow-method.html
要从TableViewSection中删除,您可以使用Ti.UI.TableViewSection.remove()
答案 1 :(得分:2)
正如Brian Huenefeld指出的那样,它在文档中,但它也在Kitchen Sink应用程序中
https://github.com/appcelerator/KitchenSink/blob/master/Resources/examples/table_view_row_delete.js
将来,请在提问前再进行一些尽职调查
答案 2 :(得分:0)
tableview.deleteRow(0);
不传递行对象,它不会工作而是传递索引,它会。那里的文件很乱。