Skip to content

Instantly share code, notes, and snippets.

@nappa7878
Created March 20, 2012 01:33
Show Gist options
  • Save nappa7878/2129639 to your computer and use it in GitHub Desktop.
Save nappa7878/2129639 to your computer and use it in GitHub Desktop.
画面を固定する
// ViewController.h を修正する
// 横長:ボタン右
// UIInterfaceOrientationLandscapeRight
// 横長:ボタン左
// UIInterfaceOrientationLandscapeLeft
// 縦長:ボタン下(通常の画面)
// UIInterfaceOrientationPortrait
// 縦長:ボタン上
// UIInterfaceOrientationPortraitUpsideDown
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment