tableView编辑模式-iPhone [英] tableView editing mode -iPhone

查看:161
本文介绍了tableView编辑模式-iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编辑模式下是否有任何方法可以删除减号并仅显示重新排序图标?

Is there any way to remove the minus sign when in editing mode and displaying only the reorder icon?

尝试很长时间。不知何故成功地删除了表的缩进,但仍然无法删除减号。

Trying since long time. Somehow succeeded in removing the indentation of table but still failed to remove the minus sign.

此外,我希望重新排序图标永久显示在屏幕上,以便表格视图始终处于编辑模式

Also i want the reorder icon appear permanently on screen so the table view will always be in editing mode

有没有选择这样做???请帮助....

Is there any option to do this???Please help....

推荐答案

我不确定你能做到这一点(我认为我没有看到它实现过)但如果它能够工作,我认为你通过返回 UITableViewCellEditingStyleNone 作为单元格的编辑样式来实现这一点

I'm not sure you can do this (I don't think I have ever seen it implemented) but if it were to work I think you do this by returning UITableViewCellEditingStyleNone as the cell's editing style in

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath

只要你有

- (void)tableView:(UTableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toindexPath:(NSIndexPath *)toIndexPath

-(BOOL)tableview:(UITableView *)tableview canMoveRowAtIndexPath:(NSIndexPath *)indexPath

defin在UITableViewDelegate中,当您进入编辑模式时,应显示重新排序控件。

defined in the UITableViewDelegate the reordering controls should display when you enter edit mode.

开始编辑样式调用

- (void)setEditing:(BOOL)editing animated:(BOOL)animated


$ b加载视图后$ b

after your view gets loaded

这篇关于tableView编辑模式-iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆