SDK中当前是否有任何东西可以对tableView部分进行重新排序?像这样,将整个部分移到相邻部分的下方还是上方?这可以通过单独的UITableViewCells来实现。
Is there anything currently in the SDK that allows for re-ordering of tableView sections? As in, move the entire section below or above an adjacent section? This is plausible with individual UITableViewCells. Haven't seen it done for sections though.
推荐答案也许不理想,但相当简单,因此值得考虑:添加区域标题的向上/向下按钮。在第一个上向下,在最后一个上向上,所有其他上向下。然后以编程方式重新排序表格,以响应按钮的按下。向上将部分向上移动一格,向下将部分向下移动一格。 马丁
Maybe not ideal but fairly simple so worth considering: Add Up/Down buttons to your section headers. Down on the first, Up on the last and Up and Down on all the others. Then respond to the button presses by programmatically re-ordering the table. Up moves the section up one and Down moves the section down one. Martin
更多推荐
通过拖动对iPhone上的UITableView部分进行重新排序(如对行进行重新排序)
发布评论