【问题标题】:Delete button is stay out side of UITableViewStyleGrouped cell background删除按钮位于 UITableView 样式分组单元格背景之外
【发布时间】:2010-10-12 10:15:30
【问题描述】:

我正在使用样式为 UITableViewStyleGrouped 的 UITableView,但是当我将表格设置为正在编辑 = YES 时,内容单元格被缩放,因此删除按钮位于背景之外,如下图所示

如何让删除按钮留在白色背景内?

【问题讨论】:

    标签: ios iphone uitableview cocoa-touch button


    【解决方案1】:

    尝试将单元格的 shouldIndentWhileEditing 属性设置为 NO,或从委托的 tableView:shouldIndentWhileEditingRowAtIndexPath: 方法返回适当的值。

    还要注意,委托的方法具有更高的优先级并覆盖单元格属性的值

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-11
      • 2013-01-05
      • 1970-01-01
      • 1970-01-01
      • 2012-12-11
      相关资源
      最近更新 更多