Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated readme to match recent changes

  • Loading branch information...
commit f99623c518ba9a197608e7bcea03ec70d70eb2f4 1 parent 643bf5d
@jaydee3 authored
Showing with 4 additions and 6 deletions.
  1. +4 −6 readme.md
View
10 readme.md
@@ -1,7 +1,7 @@
DroppableView
---------------
-A `DroppableView` represents a single draggable View. You may use it as a base class for the views, that you need to be draggable in your project. Currently it is built, to be used within a scrollView. But this could easily be changed.
+A `DroppableView` represents a single draggable View. You may use it as a base class for any view, that you need to be draggable in your project. You can even use it to drag something out of a scrollview, as you can seen in the example project.
The demo app demonstrates, how the `DroppableView` may be used in a project.
The `DroppableView` is used as a subview of a `UIScrollView` and can be dragged within and also out of the scrollview.
@@ -10,13 +10,11 @@ The `DroppableView` is used as a subview of a `UIScrollView` and can be dragged
Initalize the DroppableView like in th following example:
-- `aScrollView` is the parent scrollView
-- `target` is a view outside of the scrollview, to where the element should be dragged.
+`- (id) initWithDropTarget: (UIView *) target;`
-`- (id) initWithScrollView: (UIScrollView *) aScrollView andDropTarget: (UIView *) target;`
+- `target` is a view (outside of the scrollview), to where the element should be dragged.
-and add it as a subview to your `UIScrollView`.
-**Note**: Your `UIScrollView` needs to set `canCancelContentTouches = NO;`.
+If tou do use a DroppableView within a `UIScrollView`, you need to set `canCancelContentTouches = NO;` on the scrollView.
### Screenshot of the example app:
Please sign in to comment.
Something went wrong with that request. Please try again.