开发者

Change UITableViewCell appearance when drag handle is pressed

开发者 https://www.devze.com 2022-12-16 01:56 出处:网络
I\'d like to change the appearance of a cell when the user tap the drag handle. I s开发者_开发百科earched in the documentation, forums and google, but I can\'t find a method or an event that say when

I'd like to change the appearance of a cell when the user tap the drag handle.

I s开发者_开发百科earched in the documentation, forums and google, but I can't find a method or an event that say when the drag icon is pressed.

Any help will be appreciated! Thanks


Does this function help:

// Allows customization of the target row for a particular row as it is being moved/reordered
- (NSIndexPath *)tableView:(UITableView *)tableView targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexPath toProposedIndexPath:(NSIndexPath *)proposedDestinationIndexPath;               

It doesn't seem to fire until the cell has been dragged about half way into another cell, though.

It is the only indication I could find that a cell is moving.

0

精彩评论

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