Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: willDrag hook #6

Open
jklundell opened this issue Jul 2, 2012 · 2 comments
Open

feature request: willDrag hook #6

jklundell opened this issue Jul 2, 2012 · 2 comments

Comments

@jklundell
Copy link

It would be a convenience to add a delegate call just before the addDraggableIndicatorsToCell: animation block. Something like

dragTableViewController:willDragCell:forIndexPath:

in order to prepare the cell for the drag animation.

Use case: my table cells are borderless images, and the stock shadow tends not to be visible when the images are dark. So I've replaced the shadow effect with a slight enlargement of the cell, which works well. I need to composite an overlay imageview to do this right. I'd prefer to do the compositing in a willDrag call. (My workaround is to always composite the overlay for all cells, and control it with .hidden, which is of course not animatable, so I can get the effect I want by setting it to NO inside the animation block.)

@shusta
Copy link
Owner

shusta commented Jul 13, 2012

Funnily enough, I have this in my personal copy but haven't committed it to github.

Why doesn't - dragTableViewController:addDraggableIndicatorsToCell:forIndexPath: work for this?

@jklundell
Copy link
Author

Because addDraggableIndicatorsToCell is animated. I'm looking for something that happens before the animation block. addDraggableIndicatorsToCell works as long as the effect in question happens not to be animatable (.hidden, for example), but I confess to being a bit fuzzy on the effect of adding a subview within the animation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants