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

Naming suggestion #2

Open
jakubknejzlik opened this issue Nov 8, 2014 · 1 comment
Open

Naming suggestion #2

jakubknejzlik opened this issue Nov 8, 2014 · 1 comment

Comments

@jakubknejzlik
Copy link
Contributor

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)delegate;
    to
  • (void) setDragDropDelegate:(id)delegate;

@protocol UIViewDragDropDelegate

  • (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
@ryanmeisters
Copy link
Owner

👍

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