开发者

Put a UITableView into editing mode without moving the TextLabel?

开发者 https://www.devze.com 2022-12-26 21:36 出处:网络
I\'ve got a UITableView that is sortable, but that\'s it. Right now, I have all the cells set toUITableViewCellEditingStyleNone, but this still moves the开发者_StackOverflow中文版 TextLabel of the cel

I've got a UITableView that is sortable, but that's it. Right now, I have all the cells set to UITableViewCellEditingStyleNone, but this still moves the开发者_StackOverflow中文版 TextLabel of the cell over to the right by 40 pixels. Is there anyway to get edit mode, and the sort icon at the right, without shifting the TextLabel over?


What you want is - tableView: shouldIndentWhileEditingRowAtIndexPath: in the delegate. Have that return NO.

0

精彩评论

暂无评论...
验证码 换一张
取 消