Search code examples
iosipadicarousel

Need drag and drop a view in icarousel


I am using icarousel in my iPad application. I want a functionality like drag and drop of objects in that icarousel. Drag in a view out of the carousel to delete an item from it and drop a view in the carousel to add an item to in. I have downloaded icarousel from https://github.com/nicklockwood/iCarousel

I have tried the drag and drop functionality using the delegate methods

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event

but whole the view is messed up. please help me out here. thank you in advance.


Solution

  • All you need can be found in this sample project: https://github.com/firdousali86/SampleDragDropCarousel