删除uitableview中的行 [英] Deleting rows in uitableview
本文介绍了删除uitableview中的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个应用程序,如果用户输入数据,行将用该数据更新
I am Having an application where, if the user enters data the rows will be updated with that data
我可以使用单个按钮说删除",单击该按钮时将立即删除 tableview 中的所有行.?
Can i use One Single Button say 'delete' which when clicked will delete all the rows in the tableview at once.?
推荐答案
制作一个按钮并在按钮中动作的方法
make a button and in the button action method
-(IBAction)deleteRows
{
[array removeAllObjects];
[tableview reloadData];
}
这篇关于删除uitableview中的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文