Skip to content

Instantly share code, notes, and snippets.

@cheebow
Created February 26, 2013 08:18
Show Gist options
  • Save cheebow/5036922 to your computer and use it in GitHub Desktop.
Save cheebow/5036922 to your computer and use it in GitHub Desktop.
UISliderを縦にする
- (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