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.
我在 iOS 的 UITableView 中使用重新排序。我希望当我在 UITableView 单元格中重新排序时,我的数据库也应该重新排序。到目前为止,我找不到任何有用的教程。如何在 UITableview 中按顺序更改数据库。请帮忙。
我不认为有任何内置的方法可以做到这一点。
你可以做这样的事情。
1.添加新列并将其命名为“订单”或“排序”
2.在这个 1,2 ,3 ....中插入序列号
3.当你在 UITableView 中更改顺序时更新此列。
4.现在当你选择数据时按此列排序