Permalink
Browse files

disabled landscape in test project

  • Loading branch information...
1 parent 9d67916 commit 16247120d53230ec6507c98cffc96c4318aee5b9 @calimarkus committed Nov 8, 2012
Showing with 6 additions and 2 deletions.
  1. +5 −0 Classes/TestViewController.m
  2. +1 −2 SupportingFiles/Info.plist
@@ -98,6 +98,11 @@ - (void)loadView
[self.scrollView performSelector: @selector(setUserInteractionEnabled:) withObject: [NSNumber numberWithBool: YES] afterDelay: numberOfViews*animationTimePerView];
}
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
+{
+ return UIInterfaceOrientationIsPortrait(toInterfaceOrientation);
+}
+
#pragma layout
- (void)relayout
@@ -34,13 +34,12 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
- <string>UIInterfaceOrientationLandscapeLeft</string>
- <string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>

0 comments on commit 1624712

Please sign in to comment.