Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
既然hidesAccessoryWhenEditing在 iPhone 3.0 SDK 中被弃用了,那么替代品是什么?你如何获得相同的功能?
hidesAccessoryWhenEditing
直接来自文档似乎建议:
一个布尔值,用于确定在编辑单元格时是否隐藏附件视图。(已弃用。请改用 editingAccessoryType 和 editingAccessoryView 属性。)
编辑AccessoryType 提及
默认为 UITableViewCellAccessoryNone。如果通过editingAccessoryView 属性设置了编辑模式的自定义附件视图,则忽略此属性的值。