Im put an UIPopoverView in a ViewController, and i want drag 1 image from Popover to ViewController...
Im know that to do it, i need use UIGestureRecognizer, but i dont know how... i only can move the image around the popover, but i canīt drag and drope it to the ViewController...
My code:
-(void)viewDidLoad
{
UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(moveImage

];
[panGesture setMinimumNumberOfTouches:1];
[panGesture setMaximumNumberOfTouches:1];
[self.view addGestureRecognizer

anGesture];
}
(void)moveImage

UIPanGestureRecognizer *)recognizer { CGPoint newCenter = [recognizer translationInView:self.view];
if([recognizer state] == UIGestureRecognizerStateBegan) {
beginX = ball.center.x;
beginY = ball.center.y;
}
newCenter = CGPointMake(beginX + newCenter.x, beginY + newCenter.y);
[ball setCenter:newCenter];
}
Some idea? Thanks friends.
Best regards!