Created
March 20, 2012 01:33
-
-
Save nappa7878/2129639 to your computer and use it in GitHub Desktop.
画面を固定する
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
// 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