开发者

How to bump a UITableViewCell into the next section

I have a UITableView with two sections. The first section can have a maximum number of n items in it. Right now When you drag and drop a cell from the second section into the first section when it already has n items, the moved cell will drop down into row 0 of the second section using:

(NSIndexPath *)tableView:(UITableView *)tableView targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexPath toProposedIndexPath:(NSIndexPath *)proposedDestinationIndexPath

However, I'd like the moved row to stay at the proposed destination and the former nth item of the first section to be bumped down to row 0 of th开发者_如何学Ce second section instead. What's the best way to go about doing that?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜