Drag between views #4

Merged
merged 2 commits into from Jun 6, 2013

Conversation

Projects
None yet
2 participants
Contributor

gradha commented Apr 29, 2013

These changes are the basic stuff I needed for a project involving dragging views between two scrollviews. Some things may not work fully yet (the center drag BOOL has problems with your example) and due to tracking the start view the objects don't return to their start frame and instead stay on the last good location.

However you may find this useful to implement full inter-view drag support.

gradha added some commits Apr 29, 2013

@gradha gradha Adds property to allow dragging to happen at center. 8173929
@gradha gradha Adds support for dragging between subviews.
When placing TKDragView objects in different children (eg. scrollview
with objects) set the parentContainer property to the common ancestor.
It will be used to transform positions through the hierarchies.

This change required updating TKCGRectValue into a real object with a
parent UIView property so that different good rectangles can be in
different children.
a3a0f36
Owner

mapedd commented Jun 6, 2013

Sorry for the delay, and thanks for contributing!!

mapedd merged commit e5db009 into mapedd:master Jun 6, 2013

gradha deleted the gradha:pr_drag_between_views branch Jun 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment