Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i make a Vertical UISlider? [duplicate]

How can I make a vertical UISlider? I saw it in one of the applications and was trying to duplicate it. But seems difficult, does anyone know how?

like image 319
wolverine Avatar asked Mar 03 '10 09:03

wolverine


1 Answers

The easiest approach is to simply rotate the slider. This can be done by using CGAffineTransformMakeRotation to create a transform and apply that to the slider's transform property. Just remember that the function takes radians.

like image 161
Giao Avatar answered Nov 02 '22 22:11

Giao