title: Drag an UIImageView from UIscrollView to another view
body: <p>I crawled all the web, but nothing.</p>
  
  <p>I have a <em>for loop</em> to <em>create uiimageview inside a uiscrollview controller</em>.
  It's a collection of images that you can scroll <em>horizontally only</em>.</p>
  
  <pre><code>for (int i = 0; i &lt; NIMAGES; i++) {
      NSString *filename = [NSString stringWithFormat:@"image%d.png", i+1];
      ScrollerImage *iv = [[ScrollerImage alloc] initWithNibName:@"ScrollerImage" bundle:nil];
      [iv initWithImage:[UIImage imageNamed:filename]];
      iv.frame = CGRectMake(i * 320.0f, 0.0f, 320.0f, 150.0f);
      iv.exclusiveTouch = YES;
      iv.userInteractionEnabled = YES;
      [sv addSubview:iv];
      [iv release];
  }
  </code></pre>
  
  <p>The <strong>ScrollerImage</strong> class is an <strong>UIImageView controller</strong></p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  @interface ScrollerImage : UIImageView { 
  }
  @end
  </code></pre>
  
  <p><strong>Now, how can I drag</strong> (not necessary a move, also a copy of view, or an id of view, anything that permit me to identify the image) <strong>an image from the scroller to another view</strong>?
  It's like a shopping cart, where you can drag items at the bottom view (cart).</p>
  
  <p>Like this:<br>
  <img src="https://i.stack.imgur.com/I0ekn.png" alt="enter image description here"></p>