code of tutorial http://www.raywenderlich.com/56885/custom-control-for-ios-tutorial-a-reusable-knob