使用Check和UnCheck- HELP自定义self.editButtonItem [英] Customizing self.editButtonItem with Check and UnCheck- HELP

查看:126
本文介绍了使用Check和UnCheck- HELP自定义self.editButtonItem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于rightBarButtonItem。我有

So with regards to the rightBarButtonItem . I have

self.navigationItem.rightBarButtonItem = self.editButtonItem;

当我按下编辑时,我会在每个TableViewCell的左侧获得动画和垂直条纹。
当我单击该条带时,删除按钮出现在THAT tableViewCell的右侧。

When I press Edit, I get animation and a vertical stripe on the left side of each TableViewCell. When I click that stripe, the Delete button appears on the right side of THAT tableViewCell.

我想做两件事。


  1. 将'删除'重命名为'检查'

  2. 如果选中,则应显示取消选中以进行点击。

我很感激任何帮助。

:)

推荐答案

实施 tableView:titleForDeleteConfirmationButtonForRowAtIndexPath: 在您的表视图委托中。

Implement tableView:titleForDeleteConfirmationButtonForRowAtIndexPath: in your table view delegate.

这篇关于使用Check和UnCheck- HELP自定义self.editButtonItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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