A simple drag 'n drop shopping cart for iOS.
Created for a stackoverflow question, this one: http://stackoverflow.com/questions/3960960/drag-an-uiimageview-from-uiscrollview-to-another-view
iOS 5.0+. ARC.
More example on www.albertopasca.it/whiletrue
APChartObject appleObject = [[APChartObject alloc] initWithFrame:CGRectMake(0, 0, 80, 80) target:self selector:@selector(panDetected:)];
appleObject.image = [UIImage imageNamed:@"apple"];
appleObject.text = @"apple";
appleObject.price = 1.30;
appleObject.quantity = 3;
[ _scrollview addSubview:appleObject.imageView ];
Everithing! You can set quantity, add, remove objects, etc... Nothing implemented seriously.
(c)2012 Alberto Pasca - albertopasca.it.
Have fun.