Created
February 26, 2013 08:18
-
-
Save cheebow/5036922 to your computer and use it in GitHub Desktop.
UISliderを縦にする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
UISlider *slider = [[UISlider alloc] init]; | |
slider.center = self.view.center; | |
slider.transform = CGAffineTransformMakeRotation(M_PI * -90.0 / 180.0); | |
[self.view addSubview:slider]; | |
[slider autorelease]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment