如何启用 UITableViewCell 重新排序而不使用“setEditing"删除控件?方法? [英] How do you enable UITableViewCell reorder without removing control with "setEditing " method?
本文介绍了如何启用 UITableViewCell 重新排序而不使用“setEditing"删除控件?方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用 [tableview setEditing:YES animation:YES];
启用 UITableViewCell 重新排序时,删除控件也会出现.我怎样才能防止这种情况?
When I use [tableview setEditing:YES animated:YES];
to enable UITableViewCell reorder, the remove control appears too. How can I prevent that ?
推荐答案
实施 -tableView:editingStyleForRowAtIndexPath:
在表视图委托中并返回 UITableViewCellEditingStyleNone
.
这篇关于如何启用 UITableViewCell 重新排序而不使用“setEditing"删除控件?方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文