This code creating UISlider and turn 90 degrees  anticlockwise with -M_PI_2 in another context for another UIView we could use the same code with M_PI_2  for turning 90 degrees clockwise. I found this easy and useful, worth note.