gpt4 book ai didi

iphone - 将 UITableView 置于编辑模式而不移动 TextLabel?

转载 作者:行者123 更新时间:2023-12-03 20:36:44 25 4
gpt4 key购买 nike

我有一个可排序的 UITableView,但仅此而已。现在,我将所有单元格设置为 UITableViewCellEditingStyleNone,但这仍然将单元格的 TextLabel 向右移动 40 像素。无论如何,是否可以在不移动 TextLabel 的情况下获得编辑模式和右侧的排序图标?

最佳答案

您想要的是委托(delegate)中的 - tableView: shouldIndentWhileEditingRowAtIndexPath: 。返回NO

关于iphone - 将 UITableView 置于编辑模式而不移动 TextLabel?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2611396/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com