How would you make a slider to control audio volume or switch settings?

image

something like this

Something like this would answer your question UIDragDetector