如何从左侧删除公开指示按钮并始终在UITableView中显示右侧的删除按钮?

时间:2022-07-01 20:29:15

I create a UITableView and show it on Edit mode, In edit mode a (-) sign was showing on left side of each row, when pressing this button a Delete button come's from the right side and by pressing this delete button the row was deleted.

我创建一个UITableView并在编辑模式下显示它,在编辑模式下,每行左侧显示一个( - )符号,当按下此按钮时,右侧有一个删除按钮,按下此删除按钮删除了该行。

I want to remove (-) button from left side and I want to show delete button always on the right side.

我想从左侧删除( - )按钮,我想在右侧显示删除按钮。

In short I want a delete button on right side which delete my row just like we delete row in edit mode. But do not want the (-) button on left side.

总之,我想在右侧删除一个删除按钮,就像我们在编辑模式下删除行一样。但是不要左侧的( - )按钮。

1 个解决方案

#1


0  

AFAIK,this can only be achieved through a custom UITableViewCell and it is also easy.
Here is a link from the cocoa with love site and
Here is one from icodeblog

AFAIK,这只能通过自定义UITableViewCell实现,而且也很容易。这是来自可可与爱情网站的链接,这里是来自icodeblog的链接

Hope this helps.

希望这可以帮助。

#1


0  

AFAIK,this can only be achieved through a custom UITableViewCell and it is also easy.
Here is a link from the cocoa with love site and
Here is one from icodeblog

AFAIK,这只能通过自定义UITableViewCell实现,而且也很容易。这是来自可可与爱情网站的链接,这里是来自icodeblog的链接

Hope this helps.

希望这可以帮助。