-1

I am developing an app in which I need to use vertical slider which is having particular range i.e it slide between 0 to 100 values etc.

I have tried but not getting proper solution

4

1 回答 1

2

更改滑块的变换属性。

基本上第一个参数是滑块的现有变换矩阵,第二个参数是您要旋转滑块的 n*度数(以弧度为单位) *。

 IBOutlet UISlider *slider;

slider.transform = CGAffineTransformRotate(slider.transform, 270.0/180*M_PI);
于 2012-07-26T10:02:59.850 回答