views:

898

answers:

1

I want to put uislider in verticaly.i have no idea about this.so please help me for this.

+6  A: 

You have to do this programaticaly. Assuming your UISlider is bound to a variable called slider, add this code in your viewDidLoad method in ViewController.m:

- (void)viewDidLoad {

    [super viewDidLoad];

    CGAffineTransform trans = CGAffineTransformMakeRotation(M_PI * 0.5);
    slider.transform = trans;
}

Let me know if you need any more help on this..

ravinsp
This places the minimumValue end at the top. Use M_PI * -0.5 to place the minimumValue end at the bottom.
chrispix