Skip to content

Naming suggestion #2

@jakubknejzlik

Description

@jakubknejzlik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions