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
2010-03-04 05:38:32
This places the minimumValue end at the top. Use M_PI * -0.5 to place the minimumValue end at the bottom.
chrispix
2010-10-28 18:39:04