UIView-DragDrop
UIView-DragDrop copied to clipboard
Naming suggestion
I must say, it works great! :) Anyway just for first time I've got problems with naming conventions. So my suggestion:
@interface UIView (DragDrop)...
- (void) setDelegate:(id<UIViewDragDropDelegate>)delegate; to
- (void) setDragDropDelegate:(id<UIViewDragDropDelegate>)delegate;
@protocol UIViewDragDropDelegate <NSObject>
- (void) draggableView:(UIView *)view wasDroppedOnDropView:(UIView *)drop;
@optional
- (BOOL) draggableViewShouldReturnToStartingPosition:(UIView*)view;
- (void) draggingDidBeginForView:(UIView*)view; //same
- (void) draggingDidEndWithoutDropForView:(UIView*)view; //same
- (void) draggableView:(UIView *)view didHoverOverDropView:(UIView *)dropView;
- (void) draggableView:(UIView *)view didUnhoverOverDropView:(UIView *)dropView; @end
:+1: