草庐IT

swipeEditLabel

全部标签

ios - 无需触摸即可滑动 UITableViewCell

正如我的标题所说,当用户访问ViewController时,我想从左向右滑动UITableView的第一行。在我的ViewController中,我有一个UITableView,每一行都有两个按钮“更多”和“删除”操作。看下面的代码functableView(_tableView:UITableView,canEditRowAtindexPath:IndexPath)->Bool{returntrue}functableView(_tableView:UITableView,commiteditingStyle:UITableViewCellEditingStyle,forRowAti

ios - 无需触摸即可滑动 UITableViewCell

正如我的标题所说,当用户访问ViewController时,我想从左向右滑动UITableView的第一行。在我的ViewController中,我有一个UITableView,每一行都有两个按钮“更多”和“删除”操作。看下面的代码functableView(_tableView:UITableView,canEditRowAtindexPath:IndexPath)->Bool{returntrue}functableView(_tableView:UITableView,commiteditingStyle:UITableViewCellEditingStyle,forRowAti