What is the difference between single acting cylinders and double acting cylinders?

Single acting cylinders use a spring to either extend or retract the piston (depending on the application requirements).

Double acting cylinders use air pressure to extend and retract the piston.