【问题标题】:delete only text in a row (but not the row) when delete button is tapped in editing mode of UITABLEVIEW在 UITABLEVIEW 的编辑模式下点击删除按钮时,仅删除一行中的文本(但不删除该行)
【发布时间】:2010-07-15 10:55:43
【问题描述】:

我已在 UItableView 的编辑模式中将删除按钮标题更改为“清除”。现在,点击此按钮只会清除此单元格中的文本。但是清除删除按钮后不会返回,“-”按钮也不会旋转到原始位置。请提出一些解决方法和解决方案。提前致谢

【问题讨论】:

    标签: iphone uitableview editing


    【解决方案1】:

    你打电话给[tableView setEditing:NO animated:YES];了吗?

    【讨论】:

    • 感谢您的回复,我希望我的表格视图始终保持编辑模式
    【解决方案2】:

    感谢所有花时间思考这个问题的人。我得到了解决方案。我打电话给[tableView reloadRowsAtIndexPaths:editedIndexPathsArray withRowAnimation:UITableViewRowAnimationBottom]。像魅力一样工作。此外,动画就像奖金一样附带。此外,我正在做 [tableView reloadData],但没有必要只为 2-3 行重新加载整个 tableView。谢谢

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-28
      • 1970-01-01
      • 1970-01-01
      • 2010-11-01
      相关资源
      最近更新 更多