Skip to content

elpsk/Shopping-Cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopping Cart

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

SS Screenshot

iOS 5.0+. ARC.

A Screenshot B Screenshot C Screenshot D Screenshot

More example on www.albertopasca.it/whiletrue

How to use

	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 ];   

TODO

Everithing! You can set quantity, add, remove objects, etc... Nothing implemented seriously.

Copyrigth

(c)2012 Alberto Pasca - albertopasca.it.

License

Have fun.

About

A simple drag 'n drop shopping cart for iOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published